Struts2的Result Type

转自:http://savefrom.iteye.com/blog/305413
   1 . chain  
   
2 .  
   
3 .     用来处理Action链  
   
4 .   
   
5 .     com.opensymphony.xwork2.ActionChainResult  
   
6 .   
   
7 . dispatcher  
   
8 .   
   
9 .     用来转向页面,通常处理JSP  
  
10 .   
  
11 .     org.apache.struts2.dispatcher.ServletDispatcherResult  
  
12 .   
  
13 . freemaker  
  
14 .   
  
15 .     处理FreeMarker模板  
  
16 .   
  
17 .     org.apache.struts2.views.freemarker.FreemarkerResult  
  
18 .   
  
19 . httpheader  
  
20 .   
  
21 .     控制特殊HTTP行为的结果类型  
  
22 .   
  
23 .     org.apache.struts2.dispatcher.HttpHeaderResult  
  
24 .   
  
25 . redirect  
  
26 .   
  
27 .     重定向到一个URL  
  
28 .   
  
29 .     org.apache.struts2.dispatcher.ServletRedirectResult  
  
30 .   
  
31 . redirectAction  
  
32 .   
  
33 .     重定向到一个Action  
  
34 .   
  
35 .     org.apache.struts2.dispatcher.ServletActionRedirectResult  
  
36 .   
  
37 . stream  
  
38 .   
  
39 .     向浏览器发送InputSream对象,通常用来处理文件下载,还可用于返回AJAX数据  
  
40 .   
  
41 .     org.apache.struts2.dispatcher.StreamResult  
  
42 .   
  
43 . velocity  
  
44 .   
  
45 .     处理Velocity模板  
  
46 .   
  
47 .     org.apache.struts2.dispatcher.VelocityResult  
  
48 .   
  
49 . xslt  
  
50 .   
  
51 .     处理XML / XLST模板  
  
52 .   
  
53 .     org.apache.struts2.views.xslt.XSLTResult  
  
54 .   
  
55 . plainText  
  
56 .   
  
57 .     显示原始文件内容,例如文件源代码  
  
58 .   
  
59 .     org.apache.struts2.dispatcher.PlainTextResult  
  
60 .   
  
61 . redirect - action  
  
62 .   
  
63 .     重定向到一个Action  
  
64 .   
  
65 .     org.apache.struts2.dispatcher.ServletActionRedirectResult  
  
66 .   
  
67 . plaintext  
  
68 .   
  
69 .     显示原始文件内容,例如文件源代码  
  
70 .   
  
71 .     org.apache.struts2.dispatcher.PlainTextResult 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值