Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Powerpoint Presentation In An IFRAME

 
Jason Ferguson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a PowerPoint presentation stored as a BLOB in an Oracle database. After quite awhile of fighting, I finally have a servlet that returns the presentation. Yay me.

However, a basic HTML issue seems to be hitting me. I am trying to display the CBT in an IFRAME, but it refuses to do so. Instead, it wants to open PowerPoint to display the presentation.

Here's the offending code chunk from the JSP:



(Note: for those of you unfamiliar with the Struts taglib, this renders as this:


)

Can anyone tell me how to get this to display in the IFRAME?

A couple of notes:
- I am not able to convert to Flash or HTML. The Use Case REQUIRES PowerPoint.
- People accessing the application WILL have PowerPoint installed on their workstation.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65109
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you are going to be able to do that. If I am understanding your issue correctly, when you return the response to the main window, the browser (if configured as such) will use a PP plugin to start up and use PP to display the slideshow. No such provisions are made for iframes.
 
Jason Ferguson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm starting to figure out some of the wonkiness of what the previous coder did.

Instead of outputing the PowerPoint slideshow to the IFRAME, he had a second page in charge of displaying the PPT:



I rewrote this as:


The problem now seems to be related to the <link> tag. When I try to specify the /displayCbt.do?cbtId=XXX, nothing happens.

This may be starting to wander into Struts-specific territory, but can the HREF of a link contain a reference to a Struts action instead of .htm? (Note, the debugger showed that the Action was not accessed by this page).

Jason

Originally posted by Bear Bibeault:
I don't think you are going to be able to do that. If I am understanding your issue correctly, when you return the response to the main window, the browser (if configured as such) will use a PP plugin to start up and use PP to display the slideshow. No such provisions are made for iframes.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65109
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by J. Ferguson:
This may be starting to wander into Struts-specific territory..
Struts will have no effect on client-side issues. Once Struts -- or any other JSP/servlet mechanisms -- has done its thing, the page sent tot he browser is just HTML.

can the HREF of a link contain a reference to a Struts action instead of .htm

Of course. The HREF can specify any valid URL that returns a response of the expected type.

I'm afraid that I'm not familiar enough with the use of Main-File <link> elements to be of much help.
[ February 26, 2008: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic