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

来源:互联网 发布:淘宝游戏专营店铺 编辑:程序博客网 时间:2024/06/05 09:21
初学前端,遇到了这个问题,在jsp页面的开头会有个红色的波浪线,鼠标放上去会报这个错。
The superclass "javax.servlet.http.HttpServlet" was not found on theJavaBuild Path



解决方法:右击项目-->选择build path-->coonfigure build path


点击右边的Add library


选择server runtime

点击你的tomcat服务器,然后finish


最后就成功了,网上还有别的方法,暂时没有试。。
阅读全文
1 0