oh DUH.  Sorry, I shoulda read that more closely.
 
So just make login.jsp and its image (or maybe even just the image) the
unprotected resource. Everything else can stay where it is.
 
But my original ?? about Tomcat using the 'last' rather than the
'causing' resource stands.  Why would they implement it thusly ?

> -----Original Message-----
> From: Tim Funk [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 14, 2003 10:53 AM
> To: Tomcat Users List
> Subject: Re: JDBCRealm - Login redirects to my image instead
> 
> 
> (Guessing)
> Put the image in an unprotected area. Since the image was the 
> most recent 
> request under a secutiry contraint, you are being redirected 
> to that request 
> on successfull login.
> 
> -Tim
> 
> Rick Roberts wrote:
> >> I have JDBCRealm and Form Based AUTH.
> >>
> >> I have an image in my login.jsp file.
> >> Like this:
> >> <IMG src='/myApp/images/myImage.gif' width='250' height='75'>
> >>
> >> When I navigate to myApp/index.jsp, I get redirected to my 
> login.jsp
> >> file (just as I should).
> >> But, when I login, I get redirected to the image referenced in 
> >> login.jsp, instead of to index.jsp.
> >>
> >> It kinda makes since that this would happen, because 
> j_security_check
> >> sees the image file as the first target file to load.
> >>
> >> However; it is not what I want to happen.
> >>
> >> I could remove my <IMG> and everything works fine. But, I'd rather
> >> figure out how to keep my <IMG> in login.jsp and get redirected to 
> >> index.jsp.
> >>
> >> Anyone know how to do this?
> >>
> > 
> > Something I forgot to mention:
> > 
> > When login.jsp loads up, it does not load up the image.
> > Then when I enter the UID & PWD j_security_check sends me 
> to the image
> > that did not loadup.
> > 
> > If I take the image out of login.jsp, then it works like I think it 
> > should.
> > 
> > Anyone know how to use an image in login.jsp?
> > 
> 
> 
> ---------------------------------------------------------------------
> 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