I stash the whole request url (query string & all) into a Session/Request
object, then after a successful login do a client-side redirect to the
original url. This avoids having to stash params in the Request and
creating two ways to get the information in each servlet [getParameter()
vs getAttribute()].
Lance Lavandowska
http://www.AgDomain.Com
-----Original Message-----
From: Todd Smith <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, September 14, 1999 12:10 AM
Subject: intercepting & restoring requests
>I'm sure that what I'm doing is pretty standard. When my servlets are
>entered, I'm checking for a session variable indicating a validated user
>and I'm forcing the user through a login process if it's not present.
>
>This works fine as long as there's an obvious default page to hand to
>the successfully logged in user. But, just to complicate things, I now
>want to intercept bookmarked requests and handle requests from sessions
>that I consider stale.
>
>Since these (bookmarked and stale) requests aren't likely to be for
>static pages, I have to have some way to save the request parms before
>the login process & restore them afterwards (so the normal servlet
>mechanisms can handle them appropriately).
>
>The first thing that comes to mind is that I stick the values from the
>(stale/bookmarked) request in a request-like object, then store that in
>the session until it's needed.
>
>But this means that I need to use this new object (as a stand-in for the
>std request) in handling all request processing, right?
>
>Am I missing a better soln? Is there an easier way? How do the pros do
>this?
>
>Were you even able to understand what I was trying to say?
>
>Thanks,
>
>Todd
>
>_________________________________________________________________________
__
>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