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
>>>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
> 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).
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
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.
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:
>>
>>