Hi,

 

1)

What's a great way to manipulate HttpServletResponse existing headers
using struts2?  

I tried changing Transfer-Encoding to Chunked using an interceptor
(AbstractInterceptor) before and after the "actionInvocation.invoke();".
I also tried again as a PreResultListener. I verified everything is
hooked up and running via System.out.putlines.

However, neither approach always affected the Transfer-Encoding value.
I can add new headers using HttpServletResponse.addHeader(), but
Transfer-Encoding seems different.

 

2)

I also need a way to remove content-length if I can guarantee
Transfer-Encoding is set to Chunked. Can I just set it to 0 and that
counts?

 

I looked at : http://www.w3.org/Protocols/rfc2616/rfc2616.html and
http://en.wikipedia.org/wiki/Chunked_transfer_encoding 

 

Thanks,

Mike Finney

 

Reply via email to