• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

rendering PDf in a JSP page.

 
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic