`
joeyhacker
  • 浏览: 94217 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

struts 得到容器的物理路径.

阅读更多

听起来没什么用, 有时候上传东西保存时还是需要的. request的那个getRealPath()那个方法被废除了, struts2中可以这样,ServletActionContext.getServletContext().getRealPath("/");  其实就是servlet的Context

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics