users@jersey.java.net

Re: [Jersey] Static references from JSP

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 29 Jan 2009 13:13:41 +0100

On Jan 29, 2009, at 12:49 PM, James Strachan wrote:

> 2009/1/29 Paul Sandoz <Paul.Sandoz_at_sun.com>:
>>
>> On Jan 28, 2009, at 6:30 PM, James Strachan wrote:
>>
>>> Its kinda trivial but I've just submitted a little patch on the
>>> bookstore sample to add a test case that a CSS file can be returned
>>> properly (which currently fails)
>>> https://jersey.dev.java.net/issues/show_bug.cgi?id=199
>>>
>>> but when we have some kinda filter thingy I can send an updated
>>> patch
>>> to the web.xml so that the test passes.
>>>
>>
>> Thanks,
>
> BTW if you've any experimental Jersey Filter implementation code sat
> on your hard drive or somewhere on the interwebs, I'd be happy to
> tlnker with it to see if I can get it to work & submit it back as a
> patch
>

OK. The only location it is in at the moment is a dark gestating
corner of my brain :-)

I am going to write some experimental filter soon. The initial
approach i will take is a list of regexes to static content. It is
much easier to implement and verify that way. Note that deferring to
Jersey first may involve execution of application code for sub-
resource locators and i am not sure that is a good idea to allow that.

I guess one annoying issue with static content is that it may not be
served up using the same constraints as for resource classes. One may
require the same auth/access restrictions to the static content. It
would also be nice if static content can be associated in the same way
as views of a resource class so it could be modular.

Paul.

P.S. I fully empathize with the 10 week old daughter experience. I am
currently experiencing the 16 month old daughter with high fever.