I deploy a webapp on two different containers (Tomcat and Jetty), but their default servlets for serving the static content have a different way of handling the URL structur
I've had good results with FileServlet, as it supports pretty much all of HTTP (etags, chunking, etc.).