Jghost

jeiao, In me the tiger sniffs the rose !

导航

2013年5月7日 #

struts2 tomcat下生成文件保存指定的目录

摘要: 用tomcat时 在前端调用后台,来生成指定的文件 文件的路径默认在tomcat的bin目录下,这时我们需要找服务器的路径 , 然后再进一步指定文件夹的路径在struts2 下 让action继承ActionSupport并实现 SessionAware,ServletContextAware,ServletRequestAware,ServletResponseAware接口使用 webrootURL=application.getRealPath(".") 找到位置 ,小技巧. 阅读全文

posted @ 2013-05-07 08:55 Jghost 阅读(243) 评论(0) 推荐(0) 编辑