users@glassfish.java.net

Re: Servlets 3.0: Default servlet hides static resources

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 Jan 2010 00:20:46 PST

> You need to append a "/" to the action URI

That solved the problem, thanks a lot :)

However, my original question is still unanswered:
Is it the intent of the spec that the container should hide all static resources when mapping a servlet to "/"?

The Servlet 3.0 spec says the following:
[i]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.[/i]

It does not mention anything about static resource, however.
[Message sent by forum member 'toker5' (java.net_at_reinseth.org)]

http://forums.java.net/jive/thread.jspa?messageID=383634