Hi Julio,

There are 2 ways I'm aware of:

1.) In your struts-config.xml action-mappings, add a "success" mapping that points to your mapping path; i.e.:

  <action
    path="/myAction"
    type="com.desalvo.action.MyAction"
    scope="request"
    name="myActionForm"
    input="/pages/myActionForm.jsp">
    <forward name="Success" path="/myAction.do" />
  </action>

Then, in your action class, return mapping.findForward("Success");

and you're done. (Note the ".do" required in the forward; thanks particularly to Hubert Rabago for making the little lightbulb go off over my head on this ;-)

2.) If you're using a Dispatch action and a "CRUD" type design where you populate your form with a method called for example, "populateData," simply refer to that method for the return in the other "letters" of your action class:

return this.populateData(mapping, form, request, response);

and you're done (thanks to co-worker Glenn Wilson for pointing this one out to me).

HTH,

Curtis

Julio Cesar De Salvo wrote:

Is there some way to return to the page / action that called to action
that is being executed?
I've 1 jsp that forwards to an action and I would like to return to the
same page that called the action, by setting the path in the
ActionForward object.
Thanks.




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



Reply via email to