Two Laptop Bag*
The moose likes Servlets and the fly likes wrapper classes in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "wrapper classes in servlets" Watch "wrapper classes in servlets" New topic
Author

wrapper classes in servlets

kalyan kumarG
Greenhorn

Joined: Mar 28, 2005
Posts: 7
Why we require wrapper classes in servlets?What are their uses?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Not clear to me.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Who requires wrapper classes in servlets? Ask them


42
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

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


Groovy
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
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

Joined: Mar 28, 2005
Posts: 7
pradeep, thanks for the information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wrapper classes in servlets