![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts2
Micro枫
热爱软件
展开
-
Struts2常量配置
struts.action.extension The URL extension to use to determine if the request is meant for a Struts action 用URL扩展名来确定是否这个请求是被用作Struts acti原创 2011-07-31 17:05:28 · 625 阅读 · 0 评论 -
struts2 下载文件
文件的下载,需要利用到struts2的Stream结果类型: 首先来看Struts2的返回类型(来自官网).Stream是用来把一个输入流返回到浏览器,这个就是用来文件下载的 Chain Result Used for Action转载 2011-09-17 14:53:02 · 446 阅读 · 0 评论 -
下载
下载 ============================== 处理下载的类:org.apache.struts2.dispatcher.StreamResult == 属性 == String contentType = "text/plain";转载 2011-09-17 16:43:44 · 634 阅读 · 0 评论