4 Replies Latest reply on Jun 10, 2004 3:20 AM by jason.donovan

    default page after login

    jason.donovan

      I have a form based login, works fine,
      but i want to redirect to a default page after the login page, instead of the protected page.

        • 1. Re: default page after login
          madcat81

          so just build a new html or jsp page and make the forward point to that page ? Like you mapped the forward to the protected page just change the forward=/protected.jsp to forward=/unprotected.jsp.

          Or what did you mean ?

          • 2. Re: default page after login
            jason.donovan

            What i mean is

            if you request a protected page, you automaticily goto the login page, when possitive logged in, you automaticily goto the requested page, i wish to overide this and goto the index page of the protected area and not to the requested page.

            thx in advance

            • 3. Re: default page after login
              gorano

              Why do you have to login before you access the protected area?

              If you still want to do so, why not make the unprotected protected?

              Ok I can see some special cases when you want to do it in the way
              you describe. Make a small protected page with a redirect in the HTML
              to the unprotected.

              /G

              • 4. Re: default page after login
                jason.donovan

                The problem is when someone enters a protected URL, you goto login, after that you goto the protected page, but the ActionForm and the Session is not initialized with the data i want.