Yes it can be messy :-)

-----Original Message-----
From: Andy Timm [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 12:31 PM
To: Struts Users Mailing List
Subject: RE: Forward after <check-login>

Robert - I'm doing this now, I was hoping do find a
better way to deal with parameters.  I can forward to
the page just fine, but when that page needs
parameters off the URL, it starts to get messy. 
Anyone have a code snippet readily available that
grabs everything but the hostname from the URL -
including params?  Thanks again.

--- Robert <[EMAIL PROTECTED]> wrote:
> I've done this by supplying the 'current' page as a
> parameter to the
> login page/service. After a successful login, a
> forward is done to that
> location. I'm not sure what your <check-login> tag
> looks like, but this
> could be a parameter of it, which is then supplied
> to the login
> mechanism. You could probably also supply the
> current page in the
> session.
> 
> - Robert
> 
> -----Original Message-----
> From: Andy Timm [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, April 23, 2002 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: Forward after <check-login>
> 
> I have some pages which require a user to be logged
> in
> and some which do not.  If the <check-login> tag
> determines that there is no user logged in, the user
> is forwarded to the login page.  I'd like to
> remember
> where the user came from and forward them there
> after
> a successful authentication.  I'm sure there are
> multiple ways of doing this and I would like some
> advice.  Thanks, Andrew Timm
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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



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

Reply via email to