开发者

Getting HTTP 404 Not Found with multiple requests while using form based authentication

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


Use Javascript to disable the button on submit.

<form onsubmit="this.button.disabled=true">
    ...
    <input type="submit" name="button">
</form>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜