新建.jsp报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

The superclass javax.servlet.http.HttpServlet was not found on

解决方案:

1.检查在eclipse中,有没有配置JDK:

The superclass javax.servlet.http.HttpServlet was not found on

2.检查在eclipse中,tomcat有没有配置好:

The superclass javax.servlet.http.HttpServlet was not found on

3.在导入的jar包上,右键Build Path——Configure Build Path...——在如下图操作

The superclass javax.servlet.http.HttpServlet was not found onThe superclass javax.servlet.http.HttpServlet was not found on

我的问题已经解决了:

The superclass javax.servlet.http.HttpServlet was not found on