Ever have a form with multiple submit buttons? Well, if you hit enter in one of the text inputs, browsers will act like the first button on the form was pressed. Unless, of course, the form only has one text input. Then it doesn't matter if you have several other types of inputs or none at all, IE will not send any button related information to the server. Its very consistent about this across all versions.
If you are using struts your error will look something like this.
javax.servlet.ServletException: Request[{0}] does not contain handler parameter named {1}
Or in Struts 1.2.1 you can overcome this by implementing the method unspecified(...) in your action.
But to avoid it all and make one input act just like multiple inputs, just add a 'hidden' text input:
<input type="text" style="display: none" />
This input will not show in any modern browser, and will force IE to act like the first button on the page was clicked when enter is pressed on this form.
<< Home