Search code examples
jsppdfiframetomcat6

pdf in iframe in jsp on tomcat, also Struts2


I'm having some issues getting my pdf file to display in my jsp page. I have the pdf saved on my tomcat server with a file location as follows c:/tomcat 6.0/webapps/appname/reports/saved/filename.pdf I am trying to open that file (preferably not using the c: location) and displaying it in an iframe in my jsp file using the following tag...

<iframe src="../appname/reports/saved/filename.pdf"></iframe>

I'm going to worry about sizing later :)

but I'm getting that the requested resource is not available.

I'm pretty sure that this is something stupid that I'm just not seeing and I'd really appreciate any help I can get.

Thanks,

Shaded


Solution

  • Well you were all partially right, but the real answer was... the URL folders are case-sensitive... I capped the folder names and the resource was found!

    Thanks for the help!