Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wrapper classes in servlets

 
kalyan kumarG
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why we require wrapper classes in servlets?What are their uses?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not clear to me.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who requires wrapper classes in servlets? Ask them
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeroen Wenting:
Who requires wrapper classes in servlets? Ask them


One of the Wrapper class from Servlet api
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequestWrapper.html


These wrappers classes help you to modify request/response. For e.g. compression, encryption, XSLT etc.

Example is here, Providing customized Request n Response
http://java.sun.com/products/servlet/Filters.html
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
One of the Wrapper class from Servlet api
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequestWrapper.html


These wrappers classes help you to modify request/response. For e.g. compression, encryption, XSLT etc.


Thanks Pardeep. Now I got that.
Actually, It is not as such required in servlet. But we may use these to modify request/response objects.
 
kalyan kumarG
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pradeep, thanks for the information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic