天天看点

eclipse创建jsp文件报错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

原因是应为缺少servlet jar包造成的,而tomcat服务器中有servlet jar,所以讲tomcat添加到项目路径中就ok了

eclipse创建jsp文件报错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
eclipse创建jsp文件报错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
eclipse创建jsp文件报错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
eclipse创建jsp文件报错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

已经不报错了

jsp