Kara,
The servlet (or other mechanism) that takes the user from some page to the
login page could make use of the user's session to cache this information
off. You can use the HttpRequest object to get the URL and parameters you
may need. You could then stuff these into a bean and put the bean into the
session. When the login page validates the member, it could then pull the
bean back out of the session, access the stored off URL, parameters, and use
these to reconstruct the original URL of the page and then redirect to that
page using the HttpServletResponse.sendRedirect() method.
Erik
Sahl
[EMAIL PROTECTED]
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Kara
> Leigh
> Sent: Monday, December 20, 1999 1:35 PM
> To: [EMAIL PROTECTED]
> Subject: how to forward to the original page after login
>
>
> Hi gang,
>
>
> I have this I'm sure a common problem:
> The user goes into an page that needs login. I take her to login page and
> after login succeeds, how can I forward it back to the original page?
>
>
> In other words, how can I get the original url AND put/get parameters so
> that I can forward it back later after login?
>
> Thank you in advance!
> KZL
>
>
>
>
>
> _______________________________________________________
> Visit Excite Shopping at http://shopping.excite.com
> The fastest way to find your Holiday gift this season
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html