P
pvsnmp
Hi,
I have a web application with a number of servlets. I am using Tomcat.
I have configured a filter for the web application in its web.xml file.
The url pattern which the filter will match is /*. The application
servlets are present in ROOT directory, the default web application
path. I have also enabled the invoker servlet. It matches the default
url pattern /servlet/*.
Can someone explain the sequence of events that happen as a request
arrives for a servlet , with URL /servlet/xyz ? How does the filter
know where to hand the request to when it reaches
chain.doFilter(req,res) ? There are no other filters and none of the
servlets are defined in the web.xml file, so its the invoker servlet
which hands the request to servlets i guess. But how to the various
components know what is to be done next???
rgds,
Prashant
I have a web application with a number of servlets. I am using Tomcat.
I have configured a filter for the web application in its web.xml file.
The url pattern which the filter will match is /*. The application
servlets are present in ROOT directory, the default web application
path. I have also enabled the invoker servlet. It matches the default
url pattern /servlet/*.
Can someone explain the sequence of events that happen as a request
arrives for a servlet , with URL /servlet/xyz ? How does the filter
know where to hand the request to when it reaches
chain.doFilter(req,res) ? There are no other filters and none of the
servlets are defined in the web.xml file, so its the invoker servlet
which hands the request to servlets i guess. But how to the various
components know what is to be done next???
rgds,
Prashant