Shuai Zheng wrote:
But I may not know the filename, contentType, etc (because these files are uploaded by the user).
http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StrutsResultSupport.html http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/util/TextParseUtil.html#translateVariables(java.lang.String,%20com.opensymphony.xwork2.util.ValueStack) <action name="download2" class=" org.apache.struts2.showcase.filedownload.FileDownloadAction"> <result name="success" type="stream"> <param name="contentType">${dbFile.contentType}</param> <param name="contentLength">${dbFile.contentLength}</param> <param name="inputName">inputStream</param> <param name="contentDisposition">filename="${dbFile.filename}"</param> <param name="parse">true</param> </result> </action> -Dale --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]