Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
button focus problem with multiple <html:submit> buttons
posted 7 years ago
I have a
having two textbox with "Cancel" and "Submit" buttons. Both buttons are <html:submit> type.
After typing in textbox if we press <Enter> key, the Cancel button is executed. This is because the cancel button is the first button on page and is by default focussed on pressing <Enter> key.
I want the second button ("Submit") to be focussed by default.
My Code is something like -
<html:submit property="bipSubmit" value="Cancel"/>
<html:submit property="bipSubmit" value="Submit"/>
SCJP 5.0, SCWCD in progress
LookupDispatchAction + html:cancel
textbox - onBlur, fire off a Struts action
DispatchAction and html:cancel
Multiple Submit Buttons?