Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bill Howell   on Apr 23 In Java Category.

  
Question Answered By: Barak Levi   on Apr 23

You cannot do this in a JSP for exactly the reasons Paul mentioned. JSPs are solely inteneded to render character response data. Anything else, be it PDF, images  or any other binary stream, must be emitted with a servlet.

create servlet file.
for example
setContentType(application/excel); but I think it depends on your browser.

also for pdf  file setContentType(application/pdf);

open your pdf or excel file  and read its content.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Display PDF contain on JSP page Or get search suggestion and latest updates.


Tagged: