How can I open a pdf, doc, xls, etc, files from a JSP page.
- Posted by: Rodolfo Piedrabuena
- Posted on: April 17 2003 10:35 EDT
You can use response.setContentType(MIME type) if you are going to open the PDF file and stream the contents out as the response.
Or you can have a link to the desired file in the jsp so that the user can click on the link to download the file.
Set response.setContentType().... for example to open micorsoft excel, response.setContentType("application/vnd.ms-excel");