request.getContextPath()报错
来源:互联网 发布:冰桶算法 编辑:程序博客网 时间:2024/04/29 15:04
别人的项目,刚用MyEclipse加载进来,一大堆错误(见怪不怪了)
JSP报错,上图:
报错:“The method getContextPath() from the type HttpServletRequest refers to the missing type String”
解决方式:看看是不是项目的jre和你本地的名字不一样(jre版本或名字起的不一样都会产生此问题).
具体操作:
1. 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。
重新validate下,看看是不是OK了呢?
剩下还有一大堆MyEclipse自检报错,就不知道怎么办了!!!
谁知道留个言!!!
- request.getContextPath()报错
- jsp页面:request.getContextPath()报错
- String Path = request.getContextPath()报错
- jsp页面:request.getContextPath()报错
- request.getContextPath();
- request.getContextPath()
- request.getContextPath()
- request.getcontextPath()
- request.getContextPath()
- request.getContextPath()
- request.getContextPath()
- request.getContextPath()
- request.getContextPath()
- request.getContextPath()
- request.getContextPath
- request.getContextPath()
- request.getContextPath()
- pagecontext.request.getcontextpath和request.getContextPath()
- bhjskalkfl
- HTTP协议及其POST与GET操作差异 & C#中如何使用POST、GET等
- 穿上215条内裤过生日
- hdu1428之dfs+spfa
- 无力吐槽
- request.getContextPath()报错
- 又是一场雨湿了多少人的心
- 和个天赋建国后啊是
- 关于MFC的多线程类 CSemaphore,CMutex,CCriticalSection,CEvent
- 服务的开启方式
- [ORACLE]ubuntu下安装ORACLE instant client小记
- 北京天津白癜风专科医院在哪
- 谢贤与女友coco相差50岁 称"不会再找更年轻的"
- 内核通知链表简介