File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes regarding pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "regarding pdf" Watch "regarding pdf" New topic

regarding pdf

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 151

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

Joined: Mar 22, 2005
Posts: 42965
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

Joined: Sep 29, 2008
Posts: 12617

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.
I agree. Here's the link:
subject: regarding pdf
It's not a secret anymore!