setting content type to pdf
843836Aug 1 2003 — edited Aug 4 2003Hi guys
I want my jsp output in pdf format. I have written following lines at the start of jsp:
response.setContentType("application/pdf");
response.setHeader("content-disposition","attachment;");
But acrobat reader is giving following error:
"Acrobat could not open the file because it is either not a supoorted file type or because the file has been corrupted.(for example it was sent as an email attachment and wont correctly decoded)"
Please advise if anybody knows this issue.
Regards,
SM