-<form action="Action.do">----
|                            |
|                            |
| [    ] text field          |
|                            |
|         [submit1][submit2] |
-</form>-----------------------

By default the first submit button should be activated for the submission.

If you press enter/return key a key event(ENTER) is send which is
equivalent to the submit button. Since now there are two button 
an array is form if you were to name them the same by
browser definition the first button is send.( if it is an array the first
will be send).

As with wendy view,
A form theorically should have only 1 submit button.

Hope this help.

Best Regards,
Benz Lim



-----Original Message-----
From: Glanville, Jay [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:51 AM
To: Struts User List
Subject: [OT] multiple submit buttons on a single page


Hello all.

A slightly of-topic question for the group ...

The situation: a form with two submit buttons, and the user doesn't use
either of them, but instead submits the form by pressing enter/return in
one of the text fields.  

Question: how does the form get submitted?  Is it by:
- the action attribute of the form (<form name="XXY"
action="Action.do">)
- the first submit button
- the second submit button
- both submit buttons

My tests have shown one answer, but I'd like some confirmation (just
because test X says something doesn't mean my test is accurate! ;-) ).

Thanks

JDG


--
Jay Glanville

---------------------------------------------------------------------
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]

Reply via email to