Yes, that's exactly what I'm doing.
When the code is comited, please review it though, because I'm not sure I'm 100% correct in the setContentType, and all the i8n stuffs.

Sylvain.

On Wed, 2004-12-01 at 19:29 +0100, Manfred Geiler wrote:
Sylvain Vieujot wrote:
> Ok, it works fine for the _javascript_s with the new filter.
> 
> For the CSS, I'm working on a solution "a la SiteMesh" ( 
> http://www.opensymphony.com/sitemesh/ ).
> This means in the filter, we capture the response, and before rendering 
> it, we include the relevant <link>, ... in the header.

You could even wrap the response and redirect the standard response 
Writer through a special Writer, that includes the relevant <link> tags 
into the stream, before actually streaming it back to the client.

> As SiteMesh is known to have quite good performance, I think it's an 
> acceptable solution.
> 
> Any thoughts on this approach ?

Cool solution, yes of course!

Manfred

Reply via email to