2 Replies Latest reply on Jan 20, 2011 6:18 AM by maddos

    Please Help. Jaas login "Form" - Method with JBoss 5.1GA

    maddos Newbie

      I use JBoss 5.1GA with JAAS "Form" - authentication login method. I already configured this method and it works fine. After login It redirects to my app - page. But if i try to click in the login - form the "Login"- button 2 times (approx. with 0.5 seconds step) it shows :


      JSP Syntax


      1. HTTP Status 404 - myapp/j_security_check 

      type Status report

      message /myapp/j_security_check

      description The requested resource (/myapp/j_security_check) is not available.

      JBoss Web/2.1.3.GA

      The reason the button "Login" could be clicked 2 times is : After first click the method "j_security_check" will be called and it can takes some time until the page will be redirected (about 1-4 seconds. Sometimes more). And the user can click the button "Login" during this time again.


      How can i avoid the second click? Can i somehow block the login - form to be shown or disable the "Login" button?