Forums Register Login

how to use a filter to add params in servlet 2.3

+Pie Number of slices to send: Send
I am trying to use the 'new' filter api to add a parameter to a request
before a servlet is invoked.
My first try involved calling getParameterMap()and doing a put() into
it. It seems that map is locked readonly.
So now I'm looking at HttpRequestWrapper but to use that I think I will
have to emulate the whole parameter behaviour just to add a value.
has anyone done this before, or can point me at an example?
+Pie Number of slices to send: Send
Form my past reading on the ranch, this seems to be a good article on Filters.
Never used Filters so far......
regds.
- madhav
Forget Steve. Look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 760 times.
Similar Threads
Chaining filter servlet
Odd problem with RichFaces and Servlet Filter
html interpretation
Interview question: What's the difference between and Servlet and Filter?
where to validate a LOGIN ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:51:49.