The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files 解决方案:该错误往往发生在导入项目时缺少servlet-api.jar中导致,拷贝%Tomcat%/lib/servlet-api.jar到网站lib目录下即可。