Re: Servlets, send redirect and request scope



Berlin Brown <berlin.brown@xxxxxxxxx> wrote:
How would I do that. I know about filters. But what about in this
context.

Would I use the redirect to hit a 'filter'.

Yes. For example, you might use something like this:

1. Set a session attribute before you redirect containing the desired
request attributes and parameters.

2. Install a filter that intercepts all requests.

- If the session attribute doesn't exist, then just pass the request
along the chain without doing anything.

- If the session attribute does exist, then build a wrapped request
that returns the desired attributes and parameters, and pass that
along the chain.

--
Chris Smith
.



Relevant Pages

  • Re: Session_End Pop Up
    ... There is no way to pop open windows, or redirect them, or anything like ... You can either wait until their next request, see that they have a new ... you can have a javascript timer going off after the page loads that ... waits until the same amount of time has passed as the length of the session, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to time out the web asp.net application when not in use for 15 minutes
    ... I really think you'll have an easier time adopting Forms authentication. ... > when the session is time out asp.net application goes to session_end ... > How do I redirect now? ... >> there's no request, there's no where to transfer to. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Request variables and redirection
    ... submits back to the same page for validation. ... want to redirect to one of several pages depending on which option was ... request variables are cleaned out. ... variables out of the form and into a session variable. ...
    (alt.php)
  • Re: Gracefully Handling Logged Out User
    ... > Session has nothing to do with Forms Authentication. ... > automatically redirect them to the login page. ... > The one issue you'll see is that, if the request which required ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Global.asax
    ... > How can I Redirect my web application to a page when a session ends? ... When the session ends, there is no request to respond to (there has been ... no request for the past 20 minutes, so the browser may have been closed ...
    (microsoft.public.dotnet.languages.vb)