是缺少serverlet的引用库,解决如下
1.工程右键-properties->java build path
2.在java build path的libraries tab页中选择Add external Jars...按钮
3. 选择eclipse的安装目录,我的是绿色版本,我本机的路径如下,你自己需要根据自己的路径查找添加。E:\eclipse-java-indigo-SR1-win32\eclipse\plugins 选择javax.servlet.jsp_2.0.0.v201101211617.jar;javax.servlet_2.5.0.v201103041518.jar 进行添加即可
注释:由于版本不同,文件包名可能稍有区别。
相关文章
- 关于eclipse的Description:Resource Path Location Type The project cannot be built until build path errors are resolved的问题
- Eclipse “cannot be resolved to a type” error
- The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files.
- 项目导入时报错:The import javax.servlet.http.HttpServletRequest cannot be resolved
- 【The type javax.servlet.http.HttpServletRequest cannot be resolved】解决方案
- The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
- The type java.util.Map$Entry cannot be resolved. It is indirectly referenced
- jsp页面文件报错 javax.servlet cannot be resolved to a type
- (转)eclipse报错及解决说明 "XX cannot be resolved to a type "
- Eclipse “cannot be resolved to a type” error