Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
PDF display in Struts 1.1 + IFrame
Joined: Feb 23, 2006
Aug 12, 2010 11:47:35
HI Any body have idea how to display
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
Please help me about this .
Joined: Feb 23, 2007
Aug 12, 2010 11:54:26
regarding "URENT", please
Joined: May 05, 2010
Aug 12, 2010 16:08:12
If you are just displaying a static file just set the IFrame src to the file path.
<iframe src="PathToPDF" style="width:800px;height:1200px;border:1px solid #000000;z-index:1;" />
It is sorta covered in the
JavaRanch Style Guide
subject: PDF display in Struts 1.1 + IFrame
Displaying a tile JSP in Iframe pop up.
How to store the PDF file in the server side?
How to display a property in JSP?
IFrame and word document
Displaying bytearray content in iframe
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013