Sylvain Vieujot wrote:
Ok, it works fine for the javascripts 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