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