Hi,

I'm following the filedownload example from the showcase, but would like to be 
able to set the content disposition filename in my code, rather than have it 
hardcoded in the struts.xml file.

I have tried the following:
My struts.xml:
        <action name="SMIGExport" 
class="edu.cmu.sei.smart.zen.server.smigimportexport.SMIGExport">
            <result>/pages/smigimportexport/SMIGExport.jsp</result>
             <result name="export" type="stream">
                <param name="contentType">application/zip</param>
                <param name="inputName">inputStream</param>
                <param name="contentDisposition">savedName</param>
                <param name="bufferSize">4096</param>
            </result>
        </action>

and I declare savedName as a string variable in my action.java as well as a 
getter so that the value can be retrieved.  When the action executes, I get the 
name of my action as the name of the file I try to download.

Any ideas how to set this up?

Thanks,
Session


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to