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

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

    maddos

      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?

       


      Thanks.

        • 1. Re: Please Help. Jaas login "Form" - Method with JBoss 5.1GA
          gauravag

          Hi Maddos,

           

          Using "Form" based, then u need to use a particular type of form j_security_check where u have to do a kind of login form. That gets value from particular from browser and keep it.

          U can chek this link out

          http://sourceforge.net/projects/securewebejb/

          This is done in GF bt rest the procedure is same. I have worked in jboss as well. So can check it out. If any issue let me know.

           

          Regards,

          • 2. Re: Please Help. Jaas login "Form" - Method with JBoss 5.1GA
            maddos

            Hi Guarav.

             

            Thanks for the reply, but this is not exactly what im looking for. My Form Modul is already configured with a JBoss and it works. The problem was only when i click the "Login" button 2 times (or double click it). I alredy resolve this problem by making this button disable after clicking on it with javascript. And now the user cant produce this exception anymore and it will be correct redirected to my app page.

             

            Anyway thank you for your help.

             

            Regards,