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 @@
  * &lt;result name="success" type="stream"&gt;
  *   &lt;param name="contentType"&gt;image/jpeg&lt;/param&gt;
  *   &lt;param name="inputName"&gt;imageStream&lt;/param&gt;
- *   &lt;param 
name="contentDisposition"&gt;filename="document.pdf"&lt;/param&gt;
+ *   &lt;param name="contentDisposition"&gt;attachment; 
filename="document.pdf"&lt;/param&gt;
  *   &lt;param name="bufferSize"&gt;1024&lt;/param&gt;
  * &lt;/result&gt;
  * <!-- END SNIPPET: example --></pre>


Reply via email to