Hi,
I had faced similar problem.And as U said, soem versions of IE give preference 
to file extension over content type it seems.But the following works..

response.addHeader("Content-Disposition", "attachment;filename="+ fileName 
+".pdf"); 
where file name is any name u want the save as dialogue box to be given if user 
chooses to save file instead of open it.This works for all versions of IE i 
tried..

So i think the action name has nothing to do with this...And u can leave it as 
it is..Hope this helps..

regards,
Shirish

-----Original Message-----
From: jerome.jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:28 PM
To: struts-user
Subject: RE: XML to PDF


I think you can name your action with a .pdf extension, something like
http://localhost/xmltopdf.do.pdf.  Not sure what you'd have to do with the
action mappings to allow this to work.  Some versions of IE seem to use the
URL 'document' extension and the client systems extension to application
mapping over using the content type set in the HTTP response header.

> -----Original Message-----
> From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 3:14 PM
> To: 'Struts Users Mailing List'
> Subject: RE: XML to PDF
>
>
> Speaking of FOP, has anyone successfully streamed PDF to IE using FOP?  I
> keep getting a blank screen, but mozilla works fine.  And yes, I
> have tried
> streaming to a ByteArrayOutputStream first, so that I could set
> response.contentLength, but that didn't help...
>
> -----Original Message-----
> From: Raible, Matt [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 2:12 PM
> To: 'Struts Users Mailing List'
> Subject: RE: XML to PDF
>
>
> Check out FOP from Apache's XML project:
>
> http://xml.apache.org/fop/index.html
>
>
> > -----Original Message-----
> > From: Yan, Charlene [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 1:07 PM
> > To: Struts Users Mailing List
> > Subject: XML to PDF
> >
> >
> > Hello all,
> >
> > I just got assigned to convert XML to pdf to do reports.  Is
> > any of you working on it?  Any insights where I should get
> > started my research?  I am looking at xmlmil and aparche xml
> > home right now.
> >
> > Thanks in advance for your help!
> >
> > Charlene
> >
> > --
> > 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]>



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

Reply via email to