javax.servlet.http.HttpServlet" was not found on the Java Build Path

eclipse新建项目的时候,出现如下错误,并且在jsp里request.没有提示

 

Description    Resource    Path    Location    Type
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path    head.jsp    /fas/WebContent    line 1    JSP Problem

原因是因为没有导入runtime库.

 

解决办法是: 右击项目 properties -- java buld path --libraries --add libraries -- service runtimg ,选中自己的tomcat

你可能感兴趣的:(javax.servlet.http.HttpServlet" was not found on the Java Build Path)