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文件即可.

posted @ 2015-01-03 00:34  wonkju  阅读(132)  评论(0编辑  收藏  举报