On 10/7/05, Tobia Loschiavo <[hidden email]> wrote:
> I have to use jetty as a file server. I need to put in a context only a
> file and not the entire directory but i can't do it! Is it possible? How
> do i have to proceed?
One way would be to implement a servlet filter and attach it to the
default servlet that serves static content.
I suppose you could sub-class the default servlet
(org.mortbay.jetty.servlet.Default) and override part of the
implementation to only return resources you want to, but I think the
ServletFilter option will be more straightforward.