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

来源:互联网 发布:中外哲学家名言 知乎 编辑:程序博客网 时间:2024/05/18 13:04

今天使用Eclipse建立了一个Javaweb工程,并在eclipse中配置了Web容器。新建jsp页面,添加一个简单
的Java类。可是,JSP页面顶端出现“红色”的报错信息:The superclass “javax.servlet.http.HttpServlet” was not

found on the Java Build Path。原来Javaweb工程类中没有添加Web 容器Runtime相关类导致。

错误提示:

http://www.cnblogs.com/pszw/p/3677530.html

http://jingyan.baidu.com/article/f79b7cb34f40569144023ef9.html

0 0
原创粉丝点击