JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误
来源:互联网 发布:软件结构图 编辑:程序博客网 时间:2024/03/29 15:14
今天我将一个项目从另一台机器拷到这台机器,又重新安装了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
- 创业者一定要选择补缺市场(Niche Market)作为创业的开端
- hashcode 的疑惑
- EPG详解
- Sql Server2005 Transact-SQL 新兵器学习总结之-TOP 运算符
- 无线路由器WDS功能应用举例
- JSP页面中的request.getContextPath()出现“ .... .. refers to the missing type String”错误
- Spring获取Bean的几种方式
- 【AV SYNC】数字电视中的编解码器同步机制
- Sql Server2005 Transact-SQL 新兵器学习总结之-数据类型
- Thoughts on Redis
- c++ map
- UIWebView 屏蔽 alert警告框
- 逆波兰表达式实验
- Sql Server2005 Transact-SQL 新兵器学习总结之-TRY…CATCH