JavaWeb:标头报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

来源:互联网 发布:python注入dll 编辑:程序博客网 时间:2024/05/19 02:06

jsp标头部分报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

因为项目比较多,所以新建了个文件夹 ,打开eclipse,配置了Web容器Tomcat。建了一个Javaweb工程。加了一个jsp页面。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
2、然后在Java Build Path界面中的Orader and Export,选择Tomcat
阅读全文
1 0