struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arik Levin ( Tikal )" <>
Subject RE: html:submit and 2 buttons
Date Thu, 06 Nov 2003 09:53:22 GMT

You can just use JavaScript passing some parameters

You can also try this approach:

-----Original Message-----
From: Frers Michael [] 
Sent: Wednesday, November 05, 2003 6:54 PM
To: Struts Users Mailing List
Subject: html:submit and 2 buttons


just a little question about the taglib

i want to have one form with 2 buttons in it

one button should do "new"
the other "update"

how can i make my action class know which button was hit?

additionally i want that the buttons get there labels from a property file
that works as shown below but how can i now make my action class know which
button is hit?
<html-el:submit ><bean-el:message key=""/></html-el:submit>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message