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 without 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.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]