java web(jsp)-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)这时需要在eclipse中的 windows->references->Server->Runtime Environments中添加服务器即可.

    2)添加Tomcat服务器中lib中的 servlet-api.jar文件即可.

你可能感兴趣的:(Java Web)