tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <m...@filip.net>
Subject RE: invoker interceptor for Tomcat
Date Thu, 21 Jun 2001 18:15:34 GMT
Nick,
this has nothing to do with the interceptors.
this is a simple edit in the web.xml file to set up URL pattern matching.

for example. for more info. take a look at the servlet spec
<!--web.xml-->
    <servlet>
        <servlet-name>
            HelloWorld
        </servlet-name>
        <servlet-class>
            com.mypackage.servlet.HelloWorld
        </servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>
            HelloWorld
        </servlet-name>
        <url-pattern>
            HelloWorld
        </url-pattern>
        <url-pattern>
            mydir/HelloWorld
        </url-pattern>
        <url-pattern>
            myotherdir/HelloWorld
        </url-pattern>
    </servlet-mapping>


~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
filip@filip.net
www.filip.net
-----Original Message-----
From: Nick Stoianov [mailto:nick@yaya.com]
Sent: Thursday, June 21, 2001 11:07 AM
To: tomcat-user@jakarta.apache.org
Subject: invoker interceptor for Tomcat


Hi,

How can I have several different invoker interceptors? For example: I want
to be able to call a servlet from
http://www.myhost.com/servlets/name_of_the_servlet
and also I want to be able to call a servlet from:
http://www.myhost.com/newservlets/name_of_the_servlet

Thanks,
Nick


Mime
View raw message