• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading response object before it is sent to client

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have to read all of the data that is being sent to the client and remove any '\n\r\t' characters. How do I read what is being sent to the client and then reset it again?

Thank you
 
Anthony Watson
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use a filter to examine and modify a request/response before and/or after your servlet/jsp does something with them. You use the web.xml file to indicate which url patterns the filter will be used for.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!