Since "chain" can be a bad design practice, you might want to look at the store
<http://struts.apache.org/2.x/docs/message-store-interceptor.html>interceptor.
I have used it successfully.

On Thu, Mar 27, 2008 at 4:02 PM, Jiang, Jane (NIH/NCI) [C] <
[EMAIL PROTECTED]> wrote:

> Instead of type="redirect-action", did you try "chain"?
>
> -----Original Message-----
> From: chubi [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2008 4:05 PM
> To: user@struts.apache.org
> Subject: Message surviving redirect
>
>
> Hello,
> ----I have posted the same problem in a previous thread, yet got no
> reply,
> but I'm really stuck with it and spending days trying to solve it, in
> vain... ----
>
> I have two actions: editFeature and saveFeature. Whereas editFeature
> should
> submit successfuly to saveFeature the latter performs and redirects
> transparently to editFeature again. This is ok using redirect-action.
>
> But in case when validation fails after submission, I get back to
> editFeature with all error messages lost.
> I read a previous thread talkin about the same problem and giving a
> satisfying solution with the store interceptor, though I could not come
> to
> solve my problem.
> Here is my struts actions:
> pst: the store interceptor tags do not show correctly in this thread.
>
>  <action name="editFeature"
> class="com.intelligile.lms.webapp.action.FeatureAction" method="edit">
>                        <interceptor-ref name="defaultStack" />
>                        <interceptor-ref name="store">
>                                RETRIEVE
>                        </interceptor-ref>
>            <result>/WEB-INF/pages/featureForm.jsp</result>
>            <result name="error">/WEB-INF/pages/featureList.jsp</result>
>
>        </action>
>
>        <action name="saveFeature"
> class="com.intelligile.lms.webapp.action.FeatureAction" method="save">
>                        <interceptor-ref name="defaultStack" />
>                        <interceptor-ref name="store">
>                                STORE
>                        </interceptor-ref>
>            <result name="success"
> type="redirect">features.html</result>
>            <result name="input" type="redirect-action">
>                                editFeature.html
>                                true
>                                ${feature.dkey}
>                        </result>
>        </action>
>
> Please help me figure out where the problem exists.
> Thank you for your support.
> Best regards.
> --
> View this message in context:
> http://www.nabble.com/Message-surviving-redirect-tp16332404p16332404.htm
> l
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]
>
>


-- 
Scott
[EMAIL PROTECTED]

Reply via email to