"Jsp error"
Hi,
There is text field on a page and there are two buttons Submit and Cancel. After I enter data in the text field and hit enter, it is going to an error page. Instead if I click Submit button it is going to the correct page. What could be the reason for this? And what is solution to this problem?
Thanks.
[326 byte] By [
beejuma] at [2007-11-27 7:08:05]

What browser are you using? The behavior of the Enter key is not consistent across browsers.
Is the submit button a "regular" form submit button, or a custom image?
How did you arrange your buttons? The first button next to the text input is the one usually activated. So maybe you need to rearrange your buttons.
If all else fails, one way to get rid of the problem would be to use javascript and trap the enter key event, to submit the form.