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]