This sounds like a DispatchAction problem. If you use DispatchAction, (look the API for more info)
then in your jsp: <html:hidden property="method" value="display"/> <html:button property="edit_button" onclick="form.method.value='edit'"> Edit </html:button> <html:button property="update_button" onclick="form.method.value='update'"> Update </html:button> > Hi, > If at all I can use JavaScript in Struts...pls guide me how can I > implement the same > > Tnx in Advace, > > -Ramadoss > > > -----Original Message----- > From: Ajay Kalidindi [mailto:[EMAIL PROTECTED] > Sent: Monday, December 08, 2003 1:40 PM > To: Struts Users Mailing List > Subject: RE: Form with a Form > > > I have a suggestion. > > You can add a HIDDEN field, write a java script on click of multiple buttons > Like "ADD", "DELETE", "EDIT", "RENAME" buttons. > > What the java script will do is update HIDDEN variable and submit. > > I have not come across form within a form in HTML. > > Regards > > Ajay Kalidindi > > -----Original Message----- > From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] > Sent: Monday, December 08, 2003 10:17 AM > To: [EMAIL PROTECTED] > Subject: Form with a Form > > > Hi, > Can we define a form within a form...if so can you guide me . > > Actually in my jsp I wanted to perform two different action with respect to > button pressed.....so If I define global form I can only submit the global > action defined in that form but I wanted to submit different action with > respect to different button clicked so in that case I'm going for two > different form....plz set me if I'm wrong.. possible pls provide me how can I > achieve the same. > > Tnx in advance, > Ramadoss > > > > > --------------------------------------------------------------------- > 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] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Khalid K. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]