Servlet Mapping with wildcards

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dale

    Servlet Mapping with wildcards

    Is there any way in the web.xml, to define the servlet mappings in
    such a way that I want to map all urls, EXCEPT for particular
    patterns.

    Here is my problem.... I want to ensure that requests for CSS (*.css)
    or JS (*.js) files don't submit a request to the server most of the
    time (so the browser just uses its own cached version). Any other url
    would hit a default filter or servlet, which would then delegate to
    other appropriate servlets.

    The only way I can think to do this would be to map all 3 and 2 letter
    extensions that are not CSS or JS to this default filter. Is there no
    NOT wildcard I can use or something?

    Thanks,
    Dale
Working...