I am not sure exactly what the question is. I would like a framework solution that provides the data via ActionForms. How people handle that data would be as undefined as it is at the moment. The *only* difference would be that the framework would provide data from and to more than one ActionForm.
Jack On Fri, 18 Mar 2005 11:03:28 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Joe Germuska wrote: > > > > At 2:36 PM -0800 3/17/05, Dakota Jack wrote: > > >Suppose, Joe, that we have first.jsp and second.jsp, > > >FirstActionForm.java and SecondActionForm.java. We call > > MyAction.java > > >as the action for <html:form> in first.jsp and want to setup > > the values > > >in second.jsp via SecondActionForm.java. How would you > > configure the > > ><action-mapping> for this use case, which I think is the most common > > >use case there is? > > > > <action path="/FirstAction" name="FirstActionForm" > > type="ProcessFirstActionFormAction"> > > <set-property key="view.formName" value="SecondActionForm" /> > > <forward name="success" path="/second.jsp" /> > > </action> > > > > public class ProcessFirstActionFormAction extends Action { > > > > public ActionForward execute(mapping,form,request,response) { > > > > // perform business logic based on form, instance of > > FirstActionForm > > > > String viewFormName = mapping.getProperty("view.formName"); > > ActionForm viewForm = methodWhichLooksUpForm(request, > > viewFormName); > > // set up viewForm, which is expected to be an instance of > > SecondActionForm.java > > > > } > > > > } > > > > Did I understand your question? This is assuming that you wanted to > > do everything in an Action, which isn't my preference -- but it's > > possible. > > What would be your preference? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]