| Author |
button focus problem with multiple <html:submit> buttons
|
Mohit Jain
Ranch Hand
Joined: Jun 04, 2007
Posts: 74
|
|
Hi Ranchers
I have a JSP 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:password property="newPassword"/>
<html:password property="reenterPassword"/>
<html:submit property="bipSubmit" value="Cancel"/>
<html:submit property="bipSubmit" value="Submit"/>
Please suggest how to implement this, I prefer not to use JAVASCRIPT.
Its urgent.
|
SCJP 5.0, SCWCD in progress
|
 |
 |
|
|
subject: button focus problem with multiple <html:submit> buttons
|
|
|