When you encounter this problem, it may be a new project, and the path of Tomcat is not configured
Firstly add Tomcat
Choose the version of Tomcat to add. I use 7.0 here
After that
Right click the project — > Build Path –> Configure build path –> Libraries –> Add Library –> Server Runtime–> tomact
Similar Posts:
- The import javax.servlet cannot be resolved [How to Solve]
- JSP Web Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- About eclipse new web project, prompt: “the superclass” javax. Servlet. Http. Httpservlet “was not found on the Java” solution
- Error reporting when importing Maven project from MyEclipse
- Eclipse Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- Eclipse: How to Solve JSP <%@ Error
- [Eclipse]–Error:The superclass “javax.servlet.http.HttpServlet” was not found on the J…
- The solution of the import javax.servlet cannot be resolved in Java
- The difference between web app libraries and referenced libraries in eclipse project
- HTTP Status 500 – Unable to compile class for JSP settlement program