Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

rendering PDf in a JSP page.  RSS feed

 
Lucky J Verma
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all

I have this requirement where i want a JSP page to render my PDF file.
I want JSP page to have a inner window where it shows pdf content and my 3buttons outside for next/prev and exist.technology i am using in my application are spring ,SWF ,tiles and JSP .
I am doing sometihng like this -
response.setHeader("Content-Disposition", "inline; filename=\""+ filename + "\"");
....
sosStream = response.getOutputStream();
in my controller but it converts the full browser window and also i cant add my buttons to that.

Application is a questionaire where each page has same 3 buttons.At the end of application ,filled questions come up in PDF form and this PDF fom should be in same format as other jsp pages.

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want JSP page to have a inner window where it shows pdf content


Since the HTML written by a JSP is rendered by the browser's HTML engine and PDFs are rendered by a PDF engine, I don't think you will be able to do this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!