Re: Tomcat 5.0 web.xml filter mapping <url-pattern>/content/*.jsp
From: DelGurth (fake_at_email.address.com)
Date: 08/27/04
- Next message: Jeremy Watts: "java & java script"
- Previous message: Andy: "Re: Delphi to bytecode compiler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Aug 2004 10:02:09 -0400
We had the same problem with a jsp-property-group url-pattern, and I did
some searches on google on this topic (that's how I ended up in here for
example)
Most clear result I found was:
http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg43676.html
Where it says that mapping /somepath/*.something worked in a version of
tomcat, but is removed since it does not comply with the Servlet
specification.
This is what the servlet specification (2.4) allows:
- A string beginning with a / character and ending with a /* suffix is
used for path mapping.
- A string beginning with a *. prefix is used as an extension mapping.
- A string containing only the / character indicates the "default" servlet
of the application. In this case the servlet path is the request URI minus
the context path and the path info is null.
- All other strings are used for exact matches only.
So what you (and we) are trying to do, cannot be done according to the
Servlet 2.4 specification.
- Next message: Jeremy Watts: "java & java script"
- Previous message: Andy: "Re: Delphi to bytecode compiler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|