Re: Servlets, send redirect and request scope
- From: Chris Smith <cdsmith@xxxxxxx>
- Date: Thu, 31 Aug 2006 00:52:24 -0600
Berlin Brown <berlin.brown@xxxxxxxxx> wrote:
Yea, but it isnt as clean and not generic. For example, I would have
find every instance of request 'getParameters' that existed at the end
servlet and replace with the session getting code.
I wish there was a way to fill in values in the request object, that
way I wouldnt have to change any code at all.
And with a modern servlet spec, there is! You'll still have to get the
new information to the new request somehow. Once it's there, though,
you can set up a servlet filter that builds a wrapped ServletRequest
object and adds parameters and/or request attributes. Google on servlet
filters for details.
--
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
- Servlets, send redirect and request scope
- Prev by Date: Unescaping Unicode code points in a Java string
- Next by Date: Re: Java Networking Frage - überwachen mehrerer Sockets
- Previous by thread: Re: Servlets, send redirect and request scope
- Next by thread: Re: Servlets, send redirect and request scope
- Index(es):
Relevant Pages
|
|