Hi,
I'd register a request-level filter which does the filtering when one of
the to-be-filtered resources is requested and just does nothing if not.
This test is probably as simple as:
if (match(slingRequest.getResource())) {
response = createFilteringResponse(response);
}
chain.doFilter(request, response);
Regards
Felix
Am Donnerstag, den 04.11.2010, 10:06 -0400 schrieb Carl Hall:
> I have UI static content files for client side rendering that lives in JCR
> under /dev. I'd like to filter this content a bit to replace message keys
> with
> language specific text as this step is currently being done on the client by
> javascript. I'd prefer to not make these files into server side scripting
> files. What's the best way to have everything under /dev get passed through
> a response filter/servlet?