File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes HttpServletRequestWrapper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpServletRequestWrapper" Watch "HttpServletRequestWrapper" New topic


Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
hi guys

iam having a doubt that how the service(method) defined in HttpServletRequestWrapper is availaible to

HttpServletRequest even though they both are implementing HttpServletRequest interface

i think the container takes care of assigning the HttpServletRequestWrapper to the
HttpServletRequest which will be sent to the servlet for processing

if we have to mention the container wether we are using HttpServletRequestWrapper
similar to filters and listeners

looking for your replies
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

I'm not sure what you're asking here.
There is no service method defined in HttpServletRequestWrapper.

Are you asking whether or not the wrapper has to be explicitly declared in the deployment descriptor?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
yes ben i want to know if iam using requestWrapper wether i need to specify

any thing in web.xml

Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
No. You do not need to indicate in web.xml that you are using the requestWrapper.

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: HttpServletRequestWrapper
It's not a secret anymore!