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

今天使用eclipse新建一个jsp页面,可是页面的顶端出现错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

解决方法是:1、右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Apache Tomcat7.0

这样设置之后,可能错误显示还在,那你在点击Project—》Clean,清空整个项目,错误提示就消失了。

posted @ 2016-05-04 10:44  坚哥威武  阅读(200)  评论(0编辑  收藏  举报