When you create a jsp file error, "javax.servlet.http.HttpServlet" was not found on the Java)

the reason:

 To create a jsp file is as follows:

   Error message "javax.servlet.http.HttpServlet" was not found on the Java) because there is no step 2

 (Step 2 need to select when creating a servlet)

   

 

       solution:

      Click on the project name, right click, build path -> configure build path

      

       Select add libary -> server runtime

     

Guess you like

Origin www.cnblogs.com/xiaohaodeboke/p/12112971.html