We have been trying to implement a Batch method processor (ie a servlet that performs multiple requests batching the responses up into a single request/response) in Sling.
Normally with servlets this would require requestDispacher.forward(wrappedRequest, wrappedResponse) but this doent work since Sling unwrapps all request back to a internal SlingHttpServletRequestImpl object so although you can get hold of the requestDispatcher, and call the forward method, its almost pointless. Whats the right way of doing this sort of thing in Sling ? Ian BTW, we have also tried Filters registered against the SlingMainSevlet (via OSGI), adding another top level servlet directly to the httpservice and adding filters at the http service level before the SlingMainServlet. None appear to work for all sorts of reason, sadly perfectly valid and to spec.
