• Post Reply Bookmark Topic Watch Topic
  • New Topic

Modify Request Object

 
Vicky Jain
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Call anyone let me know that how can i modify the request object that is coming from a servlet and pass on to the servlet filter.
Is there a way to do that??
Thanx,
Vivek
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the HttpServletRequestWrapper class - you can "wrap" a request in a subclass of that to make a modified request to be passed. You do this in a custom Filter class.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!