This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "PDF display in Struts 1.1 + IFrame" Watch "PDF display in Struts 1.1 + IFrame" New topic
Author

PDF display in Struts 1.1 + IFrame

Bindu Sanju
Greenhorn

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
Bartender

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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: PDF display in Struts 1.1 + IFrame