Re: Setting Content-Length for monitoring response progress in user agent

2010-10-06 Thread Maurizio Cucchiara
You could use StreamResult: ${mimeType} ${length} inline; filename="${fileName}" inputStream 1024 false public class StreamAction { private Strin

Setting Content-Length for monitoring response progress in user agent

2010-10-06 Thread Antonio Sánchez
Hi. I'm developing an HTTP client application that is requesting to a St2 application that delivers xml content. I need to show the response progress to the user and that means I need to buffer the output, calculate the content length and set the Content-Length header before sending any data in t