• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

how to use a filter to add params in servlet 2.3

 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic