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

本文解决使用Eclipse新建项目时出现的JSP页面中request类未找到的问题,通过导入runtime库来解决。具体操作包括:右击项目->Properties->Java Build Path->Libraries->Add Library->Serviced Runtime,选择自己的Tomcat。
4071

被折叠的 条评论
为什么被折叠?



