I suppose for static pdf you could use Struts 1.1 action forward class and just set the parameter to be the actual pdf:
<action path="/action.pdf" parameter="/pdfs/static_pdf.pdf" type="org.apache.struts.actions.ForwardAction" scope="request" validate="false"> </action> I haven't tried it yet, but it should work ... Thanks for the idea ;-) Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -----Original Message----- From: edgar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 3:27 PM To: 'Struts Users Mailing List' Subject: RE: Question About Modules Yes, I am in the middle of an extensive PDF output project. I have started to create dynamic names and forwarding to them and put them on a delete list in order to give them pdf names so IE would know how to handle them. I hadn't got to the file handling part yet so your post is timely. I hadn't thought of mapping pdf's as actions and I love the idea. On your question regarding static PDF's I believe the answer to your question is that they would have to be mapped through struts-config as forwards and you would need a single action class to forward to the actual pdf. My first thought is <action path="/static" type="actions.PDFForward" <!-- you would have to write this simple action --> name="PDFDynaForm" <!-- you would need some simple Form as a ref --> validate="false" <forward name="pdf" path="/PDF/static.pdf" /> </action> Since I have no static pdf's I am going to steal your idea. Thanks Edgar -----Original Message----- From: Madel,Kurt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 2:46 PM To: 'Struts Users Mailing List' Subject: RE: Question About Modules Anyone using modules and going through an action to generate dynamic database driven pdf's??? Anyone ..... Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -----Original Message----- From: Madel,Kurt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 11:27 AM To: 'Struts Users Mailing List' Subject: Question About Modules My understanding is that you have to use an extension mapping in order to use the Module functionality, i.e. '*.do' What are people doing if they need to serve say a '.pdf' from an action? That is, my pdf is dynamic and requires the use of the same DAO's that I use for my jsp pages. Sure you can set the mime type, but Internet Explorer ignores these most of the time and counts on the extension. If you map *.pdf and *.do then you won't be able to server static pdf's??? Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>