I didn't catch this original post but I was actually wondering how to manage embedded forms with Struts1. In the example below, it would be nice to submit the inner form and then in the inner action class have available the inner form and the outer form, and to do so without having to manually copy over each field. Any creative ideas? :) So if I have: <form id="outer" method="post" action="/outer.do"> ... <form id="inner" method="post" action="/inner.do"> ... </form> </form>
> From: [EMAIL PROTECTED]> To: user@struts.apache.org> Subject: RE: [struts] > [OT] Re: Multiple / Nested Forms> Date: Tue, 26 Feb 2008 16:29:55 -0500> > > Cheers guys,> I'm trying to submit two forms but one of the forms requires > calculated> values from the second so was wondering if it was possible to put > one form> within the other. > > Thanks Dale, I'll go with the javascript > option of copying the required> fields as hidden fields for the initial > form.> > Thanks> Suzy> > -----Original Message-----> From: Dale Newfield > [mailto:[EMAIL PROTECTED] > Sent: February 26, 2008 4:26 PM> To: Struts Users > Mailing List> Subject: Re: [struts] [OT] Re: Multiple / Nested Forms> > Suzy > Fynes <[EMAIL PROTECTED]> wrote:> > nested forms> > What is it that you're > trying to achieve?> > If you have some inputs you want to appear in several > forms the two > simplest solutions would be 1> to have multiple forms and add > javascript > to copy values from one into hidden fields in the other just > before > submission, or 2> to add them all into a single form and either > adjust > the submission page with javascript before submission or put logic > in > the action to recognize which submission button was pressed and do the > > right thing.> > -Dale> > > ---------------------------------------------------------------------> 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]> _________________________________________________________________ Helping your favorite cause is as easy as instant messaging. You IM, we give. http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join