You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Debra Mendelson, CCE" <de...@birthworks.org> on 2000/12/03 18:57:10 UTC

invoker servlet in Tomcat 3.2

Is there a way to define an application that will run any named servlet if
it can be found in the classpath, in Tomcat 3.2.  In other words does the
invoker servlet still exist, does it have a replacement, or does an
application need to write their own (and has anyone written one)?


Re: invoker servlet in Tomcat 3.2

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
"Debra Mendelson, CCE" wrote:

> Is there a way to define an application that will run any named servlet if
> it can be found in the classpath, in Tomcat 3.2.  In other words does the
> invoker servlet still exist, does it have a replacement, or does an
> application need to write their own (and has anyone written one)?

The "invoker" capability exists, but it is no longer done with a servlet.

In the server.xml file, you will see an entry like this:

    <RequestInterceptor
     className="org.apache.tomcat.request.InvokerInterceptor"
     debug="0" prefix="/servlet/" />

which installs a "request interceptor" that provides the same sort of capability
that was provided by the invoker servlet in Tomcat 3.1.  As you might gather,
you can change the prefix string that is being matched by changing the value of
the "prefix" attribute.

Craig McClanahan