Re: Filtering and modification of Response in Tapestry

2019-12-02 Thread Ric 2000
Hi Cezary, this sounds great, so I now see my error, but will try it with the configuration parameter, you mentioned. Thanks a lot. Best Regards, Ric On Sun, Dec 1, 2019 at 10:50 PM Cezary Biernacki wrote: > Hi, > you get empty output because in line > > *boolean* handled = handl

Re: Filtering and modification of Response in Tapestry

2019-12-01 Thread Cezary Biernacki
Hi, you get empty output because in line *boolean* handled = handler.service(httpServletRequest, httpServletResponse); you pass the original "httpServletResponse". This lines pass processing to the rest of the filter pipeline where actual generation of the response happens, and becaus

Re: Filtering and modification of Response in Tapestry

2019-12-01 Thread Ric 2000
Hi again, here is the code I used: First the way I contributed the HttpServletRequestHandlerin my Tapestry Filter Module: @Contribute(HttpServletRequestHandler.*class*) *public* *void* contributeHttpServletRequestHandler(OrderedConfiguration configuration) { configuration.add("Javascrip

Re: Filtering and modification of Response in Tapestry

2019-12-01 Thread Ric 2000
Hi again, here is the code I used: First the way I contributed the HttpServletRequestHandlerin my Tapestry Filter Module: @Contribute(HttpServletRequestHandler.*class*) *public* *void* contributeHttpServletRequestHandler(OrderedConfiguration configuration, @Inject RequestGl

Re: Filtering and modification of Response in Tapestry

2019-12-01 Thread Ric 2000
Hi Cezary, first thanks for your reply. Then I was at least not completely wrong. Let me show my code in the next reply, I will restore the version from GIT first. Best Regards, Erich On Sat, Nov 30, 2019 at 8:38 PM Cezary Biernacki wrote: > Hi, > as you suggested, it is possible to capture o

Re: Filtering and modification of Response in Tapestry

2019-11-30 Thread Cezary Biernacki
Hi, as you suggested, it is possible to capture output of handling request by subclassing HttpServletResponseWrapper, providing your own ServletOutputStream, and wrapping the original HttpServletResponse inside a filter on the requested processing pipeline. This way is not specific to Tapestry, may

Filtering and modification of Response in Tapestry

2019-11-30 Thread Ric 2000
Dear all, I'm struggling on how to filter and modify the response sent to the client in a Tapestry web application. I tried first with a RequestFilter contributed to the RequestHandler service. The problem occurred when I tried to read the content of the current response out stream. There are diff