ITeye博客

【转】Struts2.0默认支持多种格式的result type

hunray · 2011-12-08 08:28 · Java · Web前端 · Markdown

<action name="attachment_*" class="attachmentAction"method="{1}"> //就是这个type 是什么意思 ,这是一个下载的action


type="chain" 不建议 type="dispatcher" 一般的资源 type="freemarker" Freemarker模板 type="velocity" Velocity模板 type="xslt" XSLT模板 type="httpheader" 添加状态到Http头 type="redirect" 重定向 type="redirect-action" 重定向到Action type="plaintext" 把原始内容输出(如jsp和html的原始内容) type="stream" 把一般内容输出到流

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。