I have an action class that creates an FDFdoc (PDF file) and saves it to
the response's outputstream. Before forwarding to the output jsp, I also
set the content-type of the response to the ff :

response.setContentType("application/vnd.fdf");

However, the resulting page seems to be in text/html instead of the
content-type that I set in the action class. The page displays the result
as follows

%FDF-1.2 %���� 1 0 obj << /FDF << /Fields 2 0 R /F (
http://w1124960/PDFs/GenerateFDF.pdf)>> >> endobj 2 0 obj [ << /T
(status)/V (Thanks George!)>> ] endobj trailer << /Root 1 0 R >> %%EOF

If I set the content-type on the jsp itself, I'll get an error message from
Adobe saying "the file is corrupt".

Am I overriding the default content-type in the right place or do I need to
do it elsewhere?

Thanks.






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

Reply via email to