What's the best way to open PDFs from JSP?

I would like some guidance on the best way to launch PDFs from the browser.

I have a JSP that takes some parameters and based on that downloads a PDF from my Documentum server. Files are stored on the local file system. I then provide the user with a bunch of PDF links for them to click on to launch the PDF.

Is there a better way to do this?

Thank.

+2


source to share


1 answer


Nothing special: a link is enough. But you can add target = "_ new" if you want the browser to open the PDF in a new window. Just make sure the content type returned for pdf is application / pdf.



+3


source







All Articles