2014年10月21日

struts2 MessageStoreInterceptor 拦截器的使用

摘要: MessageStoreInterceptor 拦截器可以把和该 Action 相关的 messages, errors 和 field errors(下称 "消息") 保存到session 中(默认放在 Action 中, 而 Action 在 request 中). 以使可以跨请求访问messa... 阅读全文

posted @ 2014-10-21 11:05 hellofking 阅读(238) 评论(0) 推荐(0) 编辑

struts2 result的type属性

摘要: 目前只使用过以下3种,都是直接跳转到另一个actionchain:写法:nextActionnextAction前面不加【/】斜线,上一个action中request中设置的值,在nextAction中可以取到redirect:写法:nextActionnextAction前面加或不加【/】斜线都可... 阅读全文

posted @ 2014-10-21 11:00 hellofking 阅读(156) 评论(0) 推荐(0) 编辑

导航