tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <m...@filip.net>
Subject RE: url-pattern matching in web.xml
Date Fri, 08 Jun 2001 18:19:30 GMT

<servlet>
    <servlet-name>
        your-servlet-name
    </servlet-name>
    <servlet-class>
        my.com.hello.servlet
    </servlet-class>
</servlet>

<servlet-mapping>
  <servlet-name>
    your-servlet-name
  </servlet-name>
  <url-pattern>
    hello.servlet
  </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: Matt Smith [mailto:matt@incursiontech.com]
Sent: Friday, June 08, 2001 11:09 AM
To: tomcat-user@jakarta.apache.org
Subject: url-pattern matching in web.xml


I am trouble mapping a servlet to be invoked on any call to a directory, or
any of its subdirectories.

For example, I have the Context /context1 under which hello.servlet is
mapped.

I want hello.servlet invoked as

/context1/hello.servlet
/context1/dir1/dir2/dir3/hello.servlet

Basically from the context root and ANY directory beneath context root.

Thanks

matt


Mime
View raw message