I'd like to know any better approach for this problem as well. The hard part is that you have to use the same request/response in order to pass the data.
-----Original Message----- From: Eric Jain [mailto:[EMAIL PROTECTED] Sent: June 23, 2003 11:05 AM To: struts-user Subject: Transferring data between actions What's the best way to forward from one Action to another Action that has a different ActionForm? Naïve approch: public class SomeAction extends Action { public ActionForward execute(...) { SomeForm someForm = (SomeForm) form; OtherForm otherForm = new OtherForm(); otherForm.setY(someForm.getX()); // Perhaps call otherForm.validate() here OtherAction otherAction = new OtherAction(); return otherAction.execute(mapping, otherForm, ...); } } -- Eric Jain --------------------------------------------------------------------- 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]