By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,650 Members | 753 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,650 IT Pros & Developers. It's quick & easy.

Servlet Mapping with wildcards

P: n/a
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

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?

Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.