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 JSP and the fly likes Displaying .swf in http and https 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 » Java » JSP
Bookmark "Displaying .swf in http and https" Watch "Displaying .swf in http and https" New topic
Author

Displaying .swf in http and https

Vicky Nag
Ranch Hand

Joined: Jul 02, 2003
Posts: 40
Hi,

We are using Sun One Application Server
We are displaying .swf (Flash) through a JSP file.
The flash work Fine on HTTPS but does not work on HTTP.

Looking at the source (View source option in IE) we found that on HTTP the <object> tag does not have any classid and code base. It seems to be stripped off when using HTTP. We are providing it in the JSP in the Object tag.

Following is the code in JSP to display the flash. Please provide help why it does not work on HTTP but works on HTTPS.

<p>
<object classid="clsid 27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="718" height="287" id="final">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/static/i/media/flash/final.swf?xmlFile=/static/i/media/flash/homepage_uk_en.xml" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="/static/i/media/flash/final.swf?xmlFile=/static/i/media/flash/homepage_uk_en.xml" quality="high" bgcolor="#ffffff" width="718" height="287" name="final" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>
Thanx in Advance

Regards
Vicky
SCJP 1.4
[ August 23, 2004: Message edited by: Vicky N ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61082
    
  66

"Vicky N",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Displaying .swf in http and https