B
Barney Barumba
Hi,
I'm trying to map all files which DO NOT match a certain pattern to my
servlet, and leave the matching files to the default
Tomcat/BEA/whomever implementation. For example, send all
*.gif,*.jpg,*.html files to the implementation servlet, and all others
to my servlet.
This seems to be a fairly simple thing, but I can't see any way of
doing it given the Java Servlet Spec 2.3 (or 2.4 for that matter, but
I'm not using that).
It seems to me I need one of two things: either the ability to negate
a url-pattern, or the ability to positively match urls and forward
them to the default servlet (not a servlet that matches '/*', but the
implementation servlet which handles all requests which are not
matched by any servlet-mapping).
Does anybiody have any idea how I can achieve this?
Thanks
I'm trying to map all files which DO NOT match a certain pattern to my
servlet, and leave the matching files to the default
Tomcat/BEA/whomever implementation. For example, send all
*.gif,*.jpg,*.html files to the implementation servlet, and all others
to my servlet.
This seems to be a fairly simple thing, but I can't see any way of
doing it given the Java Servlet Spec 2.3 (or 2.4 for that matter, but
I'm not using that).
It seems to me I need one of two things: either the ability to negate
a url-pattern, or the ability to positively match urls and forward
them to the default servlet (not a servlet that matches '/*', but the
implementation servlet which handles all requests which are not
matched by any servlet-mapping).
Does anybiody have any idea how I can achieve this?
Thanks