my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Powerpoint Presentation In An IFRAME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Powerpoint Presentation In An IFRAME" Watch "Powerpoint Presentation In An IFRAME" New topic
Author

Powerpoint Presentation In An IFRAME

Jason Ferguson
Ranch Hand

Joined: Aug 09, 2007
Posts: 58
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

Joined: Jan 10, 2002
Posts: 60774
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jason Ferguson
Ranch Hand

Joined: Aug 09, 2007
Posts: 58
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

Joined: Jan 10, 2002
Posts: 60774
    
  65

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Powerpoint Presentation In An IFRAME
 
Similar Threads
Internet Explorer - error messages
syntax for include file
layout
Iframes height problem
Auto resizing iframe upon window resize