Java Web报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

一般在jsp页面会显示The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path的错误。

解决方案:

(1)在文件夹右键,点击构建路径

Java Web报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

(2)在构建Java路径中,点击右面的添加库Java Web报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

(3)点击Server RuntimeJava Web报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

(4)点击Tomcat,然后点击FinishJava Web报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path