By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,737 Members | 1,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,737 IT Pros & Developers. It's quick & easy.

problem in submitting the form in struts

P: 4
i m using struts in my application , i have a struts form tag and three text fields and 2 buttons, one is html:cancel and html:submit cancel button appears first and then submit button. My problem is when i fill the text boxes and hit enter the cancel button is triggering insted of submit button i m submitting the form with javascript function.
<html:cancel styleClass="gray" style="padding-right:10px;"><bean:message key=""/></html:cancel>&nbsp;
<html:submit property="changePassword" onclick="submitChangePassword();" styleClass="red"><bean:message key=""/></html:submit>

what i have to do to trigger the submit button up on hitting the enter key
Nov 14 '06 #1
Share this Question
Share on Google+
1 Reply

P: 25
javascripts may not be enabled which may the problem
further why do you want to submit it using javascript?
Nov 14 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.