在Eclipse中新建java web项目,在JSP页面的第一行提示这个错误: [The superclass "javax.servlet.http.HttpServlet" was not found on the Java] 原因是缺少tomcat运行时相关的类. 解决办法如下: 一.设置web server运行环境参数. ① 点击Window -> Preferences -> Server -> Runtime Environments 弹出Server R…
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.原来Javaweb工程类中没有添加Tomcat运行时相关类导致. 下面是具…