The issue is not related to modules. There have been several solutions for this posted at various times in the past. Each of them should still work. Modules really don't play a part - you've simply got to inform the browser of what it's going to receive in such a way that it understands the proper file-name and content-type. I haven't had need to do this, so I can't rattle off a solution for you - sorry.

Try to see if you can get any good information by doing a google search. Then, try hitting the archive on the off-chance you can glean something from there directly. If you have no luck, try back here with a more appropriate subject - something like "Dynamically serve PDF to client" or some such. I'd wager that if you searched for different variations on that theme using google, you'd have your answer - but I have been wrong before! If you don't initially get struts-related results, throw "Struts" into your query - you should.

Madel,Kurt wrote:

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

--
Eddie Bush


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

Reply via email to