3 Replies Latest reply on Dec 29, 2011 2:18 AM by Hrvoje Jo

    JAAS for JBoss 7 - How to redirect to a default target url after login.

    hantsy bai Master

      I  was using JAAS configuration for protecting resource access.


      If the user accessed the protected url, it returned to login page and required login firstly, in this case everything worked well.


      But if I go to login page directly, and input username and password and tried to login...I got a warning page in browser(there is no exception in the background).


      The connection was reset                           The connection to the server was reset while the page was loading.                           The site could be temporarily unavailable or too busy. Try again in a few     moments.   If you are unable to load any pages, check your computer's network     connection.   If your computer or network is protected by a firewall or proxy, make sure     that Firefox is permitted to access the Web.


      I found there is no way to set a default target url in the <form-login-config> of  the web.xml.


      How to overcome this barrier? Thanks.