Re: setRequest method on HttpServletRequestWrapper

2010-04-17 Thread Unmesh Joshi
Sorry for sending all these emails on this list.. I will take the discussion on user list. But my original question is still valid for dev list. Is HttpServletRequestWrapper's setRequest method only for container writers? Because it will never work for users. (At least not on Tomcat, because of th

Re: setRequest method on HttpServletRequestWrapper

2010-04-17 Thread Mark Thomas
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: StrutsExecuteFilter is mapped to * struts2-execute /* SRV.15.2.5 explains RequestDispatcher as follows. It does not say u can (or can not) get request dispatcher

Re: setRequest method on HttpServletRequestWrapper

2010-04-16 Thread Unmesh Joshi
StrutsExecuteFilter is mapped to * struts2-execute /* SRV.15.2.5 explains RequestDispatcher as follows. It does not say u can (or can not) get request dispatcher for filters. But I think Filters do not match definition of 'Resource' in SRV. Resources are either servlets, jsps or stati

Re: setRequest method on HttpServletRequestWrapper

2010-04-16 Thread Konstantin Kolinko
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. > > On Sat, Apr 17, 2010 at 7:11 AM, Konstantin Kolinko > w

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 Joshi : >>> F

Re: setRequest method on HttpServletRequestWrapper

2010-04-16 Thread Konstantin Kolinko
2010/4/17 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 h

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 Konstantin Kolinko
2010/4/16 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 specifi

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-15 Thread Konstantin Kolinko
2010/4/14 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? As JavaDoc for HttpSer