错误提示:
The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the build path then try building this project
问题分析:
找不到jsp-api.jar和servlet-api.jar这两个包。
解决方法:
1、首先检查是否存在缺少的包:
项目---右键---properties---Java build path---libraries
2、如果没有,就进行添加:
add library---user library---user libraties---new---自定义名字---选中---add External libraries---本地tomcat目录\lib选择缺少的包,即可。