struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shirishchandra.sakh...@ubs.com
Subject RE: XML to PDF(IE problem...)
Date Wed, 22 Jan 2003 08:44:50 GMT
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:jerome.jacobsen@gentootech.com]
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:Voytek.Jarnot@MAXWELL.AF.MIL]
> 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:Matt_Raible@cable.comcast.com]
> 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:Charlene.Yan@thomsonlearning.com]
> > 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:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message