Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use a filter to add params in servlet 2.3  RSS feed

 
Rishi Singh
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Form my past reading on the ranch, this seems to be a good article on Filters.
Never used Filters so far......
regds.
- madhav
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!