StreamResult javadoc includes a mistake that leads many developers astray.
--------------------------------------------------------------------------
Key: WW-3117
URL: https://issues.apache.org/struts/browse/WW-3117
Project: Struts 2
Issue Type: Bug
Components: Documentation
Affects Versions: 2.1.6
Reporter: Dale Newfield
Priority: Trivial
org.apache.struts2.dispatcher.StreamResult includes this javadoc:
* <li><b>contentDisposition</b> - the content disposition header value for
* specifing the file name (default = <code>inline</code>, values are typically
* <i>filename="document.pdf"</i>.</li>
That last line should be:
* <i>attachment;filename="document.pdf"</i>.</li>
http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.