首页 > 代码库 > The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from

原因:项目中缺少servlet-api.jar文件。

解决办法:将D:/Program Files/Apache Software Foundation/Tomcat 5.5/common/lib下的servlet-api.jar拷贝到项目中,然后编译即可。


The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from