• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding pdf

 
santhosh kumar vk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I am using struts logic:iterator tag and bean:write tag in jsp how to show that values in pdf formate, I was using content type as application/pdf but it did not work please help me.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what "values in pdf format" means, but PDF is a complex format that can't be generated by JSP or Struts (which are used for textual output, not binary content). You can use libraries such as iText or Apache FOP to create PDFs.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/491154/HTML-JavaScript/pdf

We've already been over this: you do not magically create a PDF just by setting the content type. *You* must generate the PDF, via transformation, third-party library, etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic