WebWork 2 : Stream Result
This page last changed on Dec 14, 2004 by plightbo.
StreamA custom Result type for send raw data (via an InputStream) directly to the HttpServletResponse. Very useful for allowing users to download content.
Example: <result name="success" type="stream"> <param name="inputName">inputStream</param> <param name="contentType">${contentType}</param> <param name="contentDisposition">filename="${filename}"</param> <param name="bufferSize">2024</param> </result> |
![]() |
Document generated by Confluence on Dec 14, 2004 16:36 |