1

I am having an issue with Tomcat and Websphere when users try to login in our application.

If a user presses multiple times the return key after entering his/her login details, the form is submitted multiple times.

Tomcat and Websphere don't ignore the multiple requests and end up complaining about the /j_security_check url not being available.

After the error happens the solution is to restart the browser/tab, in order to get a new session.

Does anyone know of a possible solution to this issue?

Thanks in advance, Paulo

Paulo Pinto
  • 632
  • 4
  • 10
  • http://www.theserverside.com/news/1365146/Redirect-After-Post – JoseK Sep 24 '10 at 08:43
  • Thanks for the feedback, but the article seems to be related to general POST issues, and not to the login form, which I usually don't have any control over. – Paulo Pinto Sep 24 '10 at 13:49

1 Answers1

0

Use Javascript to disable the button on submit.

<form onsubmit="this.button.disabled=true">
    ...
    <input type="submit" name="button">
</form>
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555