The method getServletContext() is undefined for the type HttpServletRequest
2017-04-27 09:12
639 查看
request.getServletContext().getRealPath("/")
已经加入了 sun runtime library但是还是提示错误
是因为 写法过时了改成 request.getSession().getServletContext().getRealPath("/")
已经加入了 sun runtime library但是还是提示错误
是因为 写法过时了改成 request.getSession().getServletContext().getRealPath("/")
相关文章推荐
- The method getServletContext() is undefined for the type HttpServletRequest
- the method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest解决办法
- The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8(转)
- The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8
- The method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest的解决方法
- 升级到tomcat8遇到The method getDispatcherType() is undefined for the type HttpServletRequest
- Spring找不到方法:The method getDispatcherType() is undefined for the type HttpServletRequest
- “The method getDispatcherType() is undefined for the type HttpServletRequest”
- 问题“The method getDispatcherType() is undefined for the type HttpServletRequest”
- 解决The method getDispatcherType() is undefined for the type HttpServletRequest
- 部署Tomcat8遇到的 “The method getDispatcherType() is undefined for the type HttpServletRequest” 问题
- Web crash:The method getDispatcherType() is undefined for the type HttpServletRequest
- 升级到tomcat8遇到The method getDispatcherType() is undefined for the type HttpServletRequest
- jsp The method getDispatcherType() is undefined for the type HttpServletRequest
- 日常问题记录--访问JSP文件时The method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest