Re: Servlets, send redirect and request scope
- From: Chris Smith <cdsmith@xxxxxxx>
- Date: Thu, 31 Aug 2006 08:47:59 -0600
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
.
- Follow-Ups:
- Re: Servlets, send redirect and request scope
- From: Berlin Brown
- Re: Servlets, send redirect and request scope
- References:
- Servlets, send redirect and request scope
- From: Berlin Brown
- Re: Servlets, send redirect and request scope
- From: Arne Vajhøj
- Re: Servlets, send redirect and request scope
- From: Berlin Brown
- Re: Servlets, send redirect and request scope
- From: Arne Vajhøj
- Re: Servlets, send redirect and request scope
- From: Berlin Brown
- Re: Servlets, send redirect and request scope
- From: Chris Smith
- Re: Servlets, send redirect and request scope
- From: Berlin Brown
- Servlets, send redirect and request scope
- Prev by Date: Re: Best way to get user input from the console window?
- Next by Date: Re: Running java programs from class files
- Previous by thread: Re: Servlets, send redirect and request scope
- Next by thread: Re: Servlets, send redirect and request scope
- Index(es):
Relevant Pages
|