This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

filters  RSS feed

 
Arun Prasath
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which one is true? and please explain me why it is so?

1.Filters may be used to create request or response wrappers
2.Wrappers may be used to create request or response filters
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are both not false

Request and response wrappers decorate the HttpServletRequest and HttpServletResponse in some way. For example, your response wrapper could decorate the way in which the output stream is written (compressed perhaps).

A filter may make use of a wrapper, but I dont know if the sentence "filters create wrappers" is correct.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!