I have successfully used the following technique for file download via an
action:

Set the mimetype in the web.xml

Do nothing action always returns 'success' points to tiles def for file to
be downloaded

action-map:
<action path="/fileDownloadAction"
        type="com.foo.action.SuccessAction"
        name="someInitiatingForm" validate="false" scope="request">
  <forward name="success" path="file.download.entry" />
</action>

tiles-def:
<definition name="file.download.entry" path="path/to/my/file/foo.pdf">
</definition>

-Jeff





I'm wondering if anyone has any tips on how to render a pdf with struts.  I
want to mask the name of the pdf and just stream it to client.

Thanks





**********
The information contained in this communication is confidential, private, 
proprietary, or otherwise privileged and is intended only for the use of the 
addressee.  Unauthorized use, disclosure, distribution or copying is strictly 
prohibited and may be unlawful.  If you have received this communication in 
error, please notify the sender immediately at (312)653-6000 in Illinois; 
(972)766-6900 in Texas; or (800)835-8699 in New Mexico.
**********


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

Reply via email to