This submits the form to one action class regardless of the action.  I do
not want to check for what type of action.  If you set the action before
submitting the form you can get the servlet to execute that action class.  

I also want to use the image for the submit.  The problem occurs under
Netscape 4.7 and the user set "Never check for new version of page.".

thanks

-----Original Message-----
From: Prengaman.Karen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 9:05 AM
To: 'Struts Users Mailing List'
Subject: RE: multiple buttons on a form


This is how I did it, and it seems to work well:

In my form I have the following:

<html:submit property="add">Add</html:submit>
<html:submit property="save">Save</html:submit>
<html:submit property="delete">Delete</html:submit>

In my action, I check for the existance of one of these properties and act
accordingly.  For example,

String value = request.getParameter("add");
if (value != null) {
        //do something...
}

-----Original Message-----
From: Felipe F. Palma Dias [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 6:58 AM
To: Struts Users Mailing List
Subject: Re: multiple buttons on a form


I suggest that you create a function Javascript called for the buttons,
inside of the function you records one hidde-field before calling submit
with a parameter passed for the function, for example, then you I can treat
several submits.

----- Original Message -----
From: "Kiet Nguyen" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 12:48 PM
Subject: RE: multiple buttons on a form


> The image submit from strutsx seems to work for a submit with an image.
> However, I don't see a javascript property (onClick) so that a confirm
> pop-up can be implemented.
>
> thanks
>
> -----Original Message-----
> From: Phase Communcations [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 12, 2001 5:47 PM
> To: Struts Users Mailing List
> Subject: RE: multiple buttons on a form
>
>
> visit the strutsx.org and look at the image button patch.
>
> -----Original Message-----
> From: Lachlan Holmes [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 12, 2001 5:26 PM
> To: Struts Users Mailing List
> Subject: multiple buttons on a form
>
>
> Is there a way to have multiple submit buttons on a form and be able to
tell
> which button was pressed in the following action?
>
> Regards,
> Lachlan
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to