multiple submit button value

J

jvgoogle

I use multiple submit buttons on my form.
Ex. <html:submit property="method" value="noActionTaken">
The value is equivalent of a method in my DispatchAction class.
Does another parameter exist to put a label on the submit button for
example (No Action) instead of the noActionTaken??

Thanks
 
R

Roedy Green

. <html:submit property="method" value="noActionTaken">

I don't yet speak tags, but in HTML see
http://mindprod.com/jgloss/htmlcheat.html#FORMS

<input type="submit" value="Send">
<input type="reset">


The submit button will be labelled with the word "Send".

I have not tried this, for internationalisation, I would expect a
name="Send" value="Sendu" would display "Sendu" and send "Send" back
to the server or the reverse. Or perhaps the word "submit". You will
have to experiment. See
http://mindprod.com/products.html#ECHO for a simple echo server to
perform experiments with.
 
R

Roedy Green

just did an experiment using the echoserver.

<input type="submit" name="sendu" value="Send" >

displays a button marked Send.

when you click, it append the following to the message it sends to the
server:

&sendu=Send

The theory here is your code works in Esperanto (sendu) with English
internationalisation (Send).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top