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

 

错误:The type javax.http.HttpServletRequest cannot be resolved.It is indirectly....

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

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

 

你可能感兴趣的:(The type javax.http.HttpServletRequest cannot be resolved.It is indirectly)