The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from
2015-11-30 17:49
471 查看
String realpath = ServletActionContext.getServletContext().getRealPath("/img_head");
编写上面代码时出现下面的错误提示:
The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
解决该问题需要将servlet-api.jar文件复制到WEB-INF/lib文件夹中。
相关文章推荐
- webview显示https协议内容
- iOS如何在工程中使用第三方(网络)图片
- PEP 0476 -- Enabling certificate verification by default for stdlib http clients
- 用netstat对TCP状态分析
- 关于http请求和webservice请求的了解?
- java Tcp/Udp区别
- iOS开发网络篇—文件的上传
- iOS开发网络篇—监测网络状态
- tomcat下配置https环境
- 网络爬虫基本原理(二)
- 使用HttpCLient处理HTTP请求
- okhttpclient 文件断点上传
- iOS开发网络篇—发送json数据给服务器以及多值参数
- 网络爬虫基本原理(一)
- iOS开发网络篇—数据缓存
- 网络获取图片
- 定位网络攻击一例
- 卷积神经网络
- spring 4.x下让http请求返回json串
- 图片加载提速--方法一httpcache