Eclipse中Jsp文件出现: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
Eclipse中Jsp文件出现:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
解决方案项目右键->buildPath->addLibary->server runtime->ok

注意:如果addlibary显示空,检查服务器配置。Window——>Preferences——>点开Server节点——>点击Runtime Environment ——> 点击“Add… ”按钮——> 选择Apache的版本后点Next,再填入Apache服务器软件的安装(解压后)地址。

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
如果还不能解决,在Order and Export下勾选Apache
Eclipse中Jsp文件出现:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
完成后,buildproject
Eclipse中Jsp文件出现:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
到这里,刷新项目,jsp文件第一行错误应该就消失了