Hi:
In myapplication,I have to generate a ms-word file(I use the apache poi).
1)first I save the generated file to disk.
2)set the inputstream according to the file.Of course,the action result type
is already set to stream.

here is a exmapleI found about file downing:
http://www.mkyong.com/struts2/struts-2-download-file-example/

Now,my problem is how to set the filename? Since the filename is set in the
action in the struts.xml.

<param name="contentDisposition">attachment;filename="fileABC.txt"</param>

Is there any way can set the filename dynamicly?

BTW,is there some idea can avoid the step for storing the tmp file in the disk?

Reply via email to