are both formbeans added to the page/request?
Gr Ronald > -----Original Message----- > From: cool dude [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 5:41 AM > To: [EMAIL PROTECTED] > Subject: Multiple Form Beans for the same for the same action ... > HELP!!! > > > Hi Guyz, > I have multiple forms submitted to the same > action. Also both these forms are on the same page & > only one of the forms are rendered based on some > condition. Unfortunately, the form bean is not getting > instantiated ... I think the code that I've written is > right but obviously therez some problem. I've listed > the code below. > > Herez what the JSP looks like --> > > <body> > <% > String param=request.getParameter("param"); > if((param!=null) && (param.equals("first"))) { > %> > > <html:form action="/test" name="first" > type="test.FormBeanOne" scope="request"> > > <html:submit value="First Hit" /> > > </html:form> > > <% > } else { > %> > > <html:form action="/test" name="second" > type="test.FormBeanTwo" scope="request"> > > <html:submit value="Second Hit" /> > </html:form> > > <% > } > %> > </body> > > > Since I'm giving the form name & type in the form tag > I do not mention this in my struts-config.xml. The > action mapping of the struts-config is listed below : > > <action-mappings> > <action path="/test" type="test.TestMultiFormAction" > validate="true"> > </action> > </action-mappings> > > > Do you see anything wrong with what I've done ... > > Thanx in advance ... > Cheers, > VD. > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Greetings - Send FREE e-cards for every occasion! > http://greetings.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> Furore B.V. Rijswijkstraat 175-8 Postbus 9204 1006 AE Amsterdam tel. (020) 346 71 71 fax. (020) 346 71 77 ---------------------------------------------------------------------------- --------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer ---------------------------------------------------------------------------- ---------------

