|
Flash interceptor (
FlashInterceptor ) possibly with
FlashResult
allows current action to be available even after a redirect. It does this by
saving the current action into http session and pushing it back into the stack
next request, resulting in the nett effect of the action and its related information
being available across redirect.
There's no intended extension points
<!-- Usage 1: (Using only Flash interceptor) -->
<action name="store" ...>
<interceptor-ref name="flash">
<param name="operation">Store</param>
</interceptor-ref>
<interceptor-ref name="defaultStack" />
<result type="redirect">redirectToSomeWhere.jsp</result>
</action>
<action name="retrieve">
<interceptor-ref name="flash">
<param name="operation">Retrieve</param>
</interceptor-ref>
<interceptor-ref name="defaultStack" />
<result>pageWhereWeNeedFlashActionStored.jsp</result>
</action>
<!-- Usage 2: (Using Flash Interceptor and Flash Result) -->
<action name="store">
<result type="flash">redirectToSomeWhere.jsp</result>
</action>
<action name="retrieve">
<interceptor-ref name="flash">
<param name="operation">Retrieve</param>
</interceptor-ref>
<interceptor-ref name="defaultStack" />
<result>pageWhereWeNeedFlashActionStored.jsp</result>
</action>
author: tmjee version: $Date: 2007-02-04 06:33:20 +0100 (Sun, 04 Feb 2007) $ $Id: FlashInterceptor.java 2830 2007-02-04 05:33:20Z tm_jee $ |