You probably need to look at storing them in the session. Look at the
MessageStoreInterceptor.

Owen

On Wed, Jun 18, 2008 at 1:38 PM, Giovanni Azua <[EMAIL PROTECTED]> wrote:
> hi,
>
> I basically would like to pass an action message or error from one action to
> another using the redirectAction result type.
>
> The use-case is CRUD-related i.e.
>
> 1-. displaying a list of X-type beans each one having a link button to
> delete it.
> 2-. once a delete request is submitted, the appropriate action deletes the
> element and then does a:
>        addActionMessage(StringFormat.format("Element ''{0}'' was deleted
> successfully", myElement.getId()));
>    then there is a redirect back to the original list where N - 1 elements
> are displayed. The redirect is needed to
>    to clean the request parameters for displaytag to function correctly.
>
> 3-. The listX.jsp contains actionerror and actionmessage to provide feedback
> to the user.
>
> <s:actionerror />
> <s:actionmessage />
>
> My mapping looks like:
>
>       <action name="[EMAIL PROTECTED]"
> class="com.sag.optimizer.ui.web.action.datamodel.{1}Action" method="{2}">
>           <result name="input" type="tiles">webui.form{1}</result>
>           <result name="list" type="tiles">webui.list{1}</result>
>           <result name="listRedirect" type="redirectAction">
>               <param name="actionErrors">${actionErrors}</param>
>               <param name="actionMessages">${actionMessages}</param>
>               <param name="actionName">[EMAIL PROTECTED]</param>
>              </result>
>           <result name="success"
> type="tiles">webui.requestSucceeded</result>
>           <result name="error" type="tiles">webui.requestFailed</result>
>       </action>
>
> TIA,
> regards,
> Giovanni
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to