It could be that there is a broken image reference or something (stylesheet,
etc.) in the login error page that is requesting a protected resource. That
request may "reset" the URL that the container is holding onto to send the
user to, so that they get sent to the wrong place when their login succeeds.
If requesting that bad image would send you to the main home page if you
were logged in, that might be your problem.

The "Page Info" feature on Netscape or Mozilla is a useful tool for finding
bad images references. Scan the list of images for a bad URL.

If your login and error pages are "good", you shouldn't have to do anything
to send the user where they were going. The container does that for you.

-Max

----- Original Message ----- 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 13, 2003 1:39 PM
Subject: Re: requested url within the j_security_check call?


> On 10/13/2003 10:04 PM Mick Knutson wrote:
> > When I get a logon form up from a secured area request, and the user
adds a wrong username or password. They get an error logon form to re-logon.
But then they get forwarded to the main home page, not their requested URL.
How can I get that requested URL when inside the errorLogon.jsp page I
created so I can then forward them to the correct page?
> >
>
> Hi Mike,
> as long as you submit to j_security_check you shouldn't need to do what
> you want to do. Tomcat will keep your original request on stand-by until
> the login succeeds.
>
> I.e. you must be doing something wrong somewhere ;)
>
> Adam
>
> -- 
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to