MyEclipse中出现“HttpServletRequest cannot be resolved to a type”的错误
2014-03-02 13:13
459 查看
出现这种问题主要是项目中少了servlet包,全名为servlet-api.jar,这个包是可以在tomcat中找到的,所以
1.右击项目,单击Build Path
2.选中add external archives,找到安装放tomcat的文件夹,
并且找到其中的lib文件夹,servlet-api.jar就在里面,选中确认就可以啦
1.右击项目,单击Build Path
2.选中add external archives,找到安装放tomcat的文件夹,
并且找到其中的lib文件夹,servlet-api.jar就在里面,选中确认就可以啦
相关文章推荐
- java 项目导入Eclipse时出现错误:httpservletrequest cannot be resolved to a type
- HttpServletRequest cannot be resolved to a type。
- httpservletrequest cannot be resolved to a type
- HttpServletRequest cannot be resolved to a type
- myeclipse不是eclipse,servlet 报错 HttpServlet cannot be resolved to a type
- HttpServletRequest cannot be resolved to a type
- 【明哥报错簿】之【 "javax.servlet.http.HttpServlet" was not found on the Java Build Path || HttpServletRequest/HttpServletResponse cannot be resolved to a type】
- String cannot be resolved to a type - The method getContextPath() from the type HttpServletRequest r
- HttpServletRequest cannot be resolved to a type
- HttpServletRequest cannot be resolved to a type。或者
- javax.servlet.ServletException cannot be resolved to a type错误解决方法
- Java异常The type javax.servlet.http.HttpServletRequest cannot be resolved
- HttpServlet cannot be resolved to a type解决方法
- The type javax.http.HttpServletRequest cannot be resolved.It is indirectly……问题之解决
- javax.servlet.ServletException cannot be resolved to a type错误解决方法
- The type javax.servlet.http.HttpServletRequest cannot be resolved.
- Httpservlet cannot be resolved to a type的原因与解决方法
- (1.)javaweb问题解决之Httpservlet cannot be resolved to a type的原因与解决方法
- The type javax.servlet.http.HttpServletRequest cannot be resolved.
- The type javax.servlet.http.HttpServletRequest cannot be resolved.