setRequest method on HttpServletRequestWrapper

2010-04-14 Thread Unmesh Joshi
Hi, I was going through tomcat source code. (Specifically ApplicationDispatcher.java). The way HttpServletRequestWrapper is used there, puzzled me. What is the intent of all the methods of HttpServletRequestWrapper class in servlet api? Specifically HttpServletRequestWrapper's setRequest method lo

Re: setRequest method on HttpServletRequestWrapper

2010-04-16 Thread Unmesh Joshi
>>>You have to create your own subclass of HttpServletRequestWrapper. >>Note also, that the Servlet specification says something about >>wrapping and unwrapping the requests and responses. E.g., SRV.6.2.2, SRV.9.9.1 in the Servlet 2.5 specification. Servlet specification does not talk about overri

Re: setRequest method on HttpServletRequestWrapper

2010-04-16 Thread Unmesh Joshi
> Filters can be called for forwarded and included requests, if you map > them in certain way (something like INCLUDE). > See the Servlet spec for details.  SRV.6.2.5 But you cant get dispatchers for filters. UrlRewriteFilter gets a dispatcher (so rewrtten url must have a servlet or jsp handler).

Re: setRequest method on HttpServletRequestWrapper

2010-04-16 Thread Unmesh Joshi
Yes. On tomcat u get dispatcher for DefaultServlet if there is no servlet mapping for the url. Typically on Struts2 all the urls get handled in StrutsExecuteFilter and u dont get dispatcher go that filter. On Sat, Apr 17, 2010 at 7:11 AM, Konstantin Kolinko wrote: > 2010/4/17 Unmesh Jo

Re: setRequest method on HttpServletRequestWrapper

2010-04-16 Thread Unmesh Joshi
Konstantin Kolinko wrote: > 2010/4/17 Unmesh Joshi : >> Yes. On tomcat u get dispatcher for DefaultServlet if there is no >> servlet mapping for the url. Typically on Struts2 all the urls get >> handled in StrutsExecuteFilter and u dont get dispatcher go that >> filter.

Re: setRequest method on HttpServletRequestWrapper

2010-04-17 Thread Unmesh Joshi
se of the way it had implemented ApplicationDispatcher. Thanks, Unmesh On Sat, Apr 17, 2010 at 2:29 PM, Mark Thomas wrote: > Please take this to the users list. It is off-topic for the dev list. > > Mark > > On 17/04/2010 04:09, Unmesh Joshi wrote: >> >>