The type javax.http.HttpServletRequest cannot be resolved.It is indirectly 解决办法

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

解决办法:将E:\tomcat\apache-tomcat-6.0.24\lib下的servlet-api.jar拷贝到项目中,然后编译即可。(根据自己安装的tomcat地址不同,目录也有所不同)。

posted @ 2017-04-05 11:12  唯一520  阅读(3772)  评论(0编辑  收藏  举报