JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误 .
来源:互联网 发布:php答题系统源码 编辑:程序博客网 时间:2024/04/29 19:39
今天我将一个项目从另一台机器拷到这台机器,又重新安装了JDK1.6(这台机器上原先的JDK是1.5的),并配置好了JDK环境后,
我将整个项目部署好之后,在每个JSP页面中的"request.getContextPath()"下方出现了红色的波浪线,提示的错误信息是
“The method getContextPath() from the type HttpServletRequest refers to the missing type String”,
此时,我们只需这样:
1 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。
2 然后 右击该项目 - Build Path - Add Library, 选择JRE System Library,选择Workspace defaulr JRE(jdk1.6)(此前JDK已成功安装并配置好), 然后 Finish 。
这样,JSP页面中的错误提示就消失了。
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误 .
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误
- 安卓编程中的部分函数出现“ .... .. refers to the missing type String”错误
- the method getcontextpath() from the type httpservletrequest refers to the missing type string
- The method contains(CharSequence) from the type String refers to the missing type CharSequence错误解决方法
- The method contains(CharSequence) from the type String refers to the missing type CharSequence错误解决方法
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- type Signature refers to the missing type String
- The constructor ClassPathXmlApplicationContext(String) refers to the missing type
- 静静的在心里承受所有的伤痛和不快乐
- Android 软键盘的工作原理及相关操作
- Ruby on Rails
- 初学Android,自己实现ContentProvider(五十五)
- Django
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误 .
- spring3.0 mvc 文件下载
- 一起学DNS系列(十)图、例详解DNS递归和迭代查询原理及过程 (2)
- ubuntu 12.04安装ruby1.9.3
- HG8240电信光猫禁用TR069之修改配置法
- wkhtmltopdf.exe >>html to PDF
- Linux中查看进程及杀死进程命令
- 新进展,模型动作解出来了~~~
- Java basic