Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
I agree. Here's the link:
LookupDispatchAction + html:cancel
textbox - onBlur, fire off a Struts action
DispatchAction and html:cancel
Multiple Submit Buttons?