JSP页面开头 <%@出现下面错误的解决办法

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

1. 选中项目名右键,选择Build Path ---> Configure Build Path

JSP 页面出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

2. 选择Libraries ---> Add Library

JSP 页面出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

3. Server Runtime  ----> Next

JSP 页面出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

4. 选择 Apache Tomcat v9.0  ---->  Finish

JSP 页面出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

5. 从下图可以看出 Libraries中有了 Apache Tomact v9.0这个库,点击Apply 或者 Apply and Close. 这样就不会再出现错误了

JSP 页面出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

相关文章: