There are 2 ways you can use wildcards in URL mappings:

1. /content/* - maps all URLs in the content directory to your servlet
2. *.vp - maps all URLs with a .vp extension to your servlet

You cannot mix these (/content/*.vp, for example)

The servlet specification discusses this. Look at section 11.2
The spec can be downloaded from the following URL:
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/

Andy

-----Original Message-----
From: Jan Pekn�k [mailto:[EMAIL PROTECTED] 
Sent: 28 July 2003 21:39
To: Tomcat Users List
Subject: Servlet mapping problem in Tomcat 4.1.24


Hi,

I need to map servlet to some "virtual" file extension, i.e.
"/content/*.vp".
When I set this in web.xml, and make request "/content/somepage.html.vp",
Tomcat ignores this mapping and servlets is not invoked.
When I change mapping to "/content/*", everything works ok. Where is the
problem?
I'm using Tomcat 4.1.24 on Windows 2000.
Thanks for any help.

-Jan Peknik



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to