File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes PDF display in Struts 1.1 + IFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "PDF display in Struts 1.1 + IFrame" Watch "PDF display in Struts 1.1 + IFrame" New topic

PDF display in Struts 1.1 + IFrame

Bindu Sanju

Joined: Feb 23, 2006
Posts: 16
HI Any body have idea how to display PDF file in IFrame using Struts action. File should access from server

server means it will be available under /script_root/PDF/example.pdf , this file should take from action & display in IFrame JSP.

Please help me about this .
pete stein

Joined: Feb 23, 2007
Posts: 1561
regarding "URENT", please EaseUp
Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

If you are just displaying a static file just set the IFrame src to the file path.

I agree. Here's the link:
subject: PDF display in Struts 1.1 + IFrame
It's not a secret anymore!