Author: wesw Date: Wed May 6 12:27:12 2009 New Revision: 772174 URL: http://svn.apache.org/viewvc?rev=772174&view=rev Log: WW-3117, fixing docs, good catch Dale Newfield
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java?rev=772174&r1=772173&r2=772174&view=diff ============================================================================== --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java Wed May 6 12:27:12 2009 @@ -53,7 +53,7 @@ * * <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> + * <i>attachment; filename="document.pdf"</i>.</li> * * <li><b>inputName</b> - the name of the InputStream property from the chained * action (default = <code>inputStream</code>).</li> @@ -76,7 +76,7 @@ * <result name="success" type="stream"> * <param name="contentType">image/jpeg</param> * <param name="inputName">imageStream</param> - * <param name="contentDisposition">filename="document.pdf"</param> + * <param name="contentDisposition">attachment; filename="document.pdf"</param> * <param name="bufferSize">1024</param> * </result> * <!-- END SNIPPET: example --></pre>