You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thomas Kjeldahl Nilsson <tn...@marcello.no> on 2004/11/29 15:04:43 UTC

How to match\serve .swf (shockwave\flash) files in cocoon?

Hello,

I'm having some trouble with serving .swf files in my cocoon webapp.
There doesn't seem to be much info about this on the official project or 
wiki pages. Maybe it's something mind-bogglingly obvious, but I've 
stared myself blind on the sitemap file now.

Problem:

- I have several .swf files.

- My tomcat server seems to be correctly configured for the 
application/x-shockwave-flash mime type.

- I've defined a match in the sitemap:

<map:match pattern="*.swf">
   <map:read src="documents/tutorial/{1}.swf"
             mime-type="application/x-shockwave-flash"/>
</map:match>

- When accessing a .swf file in the webapp, I get something like this in 
plain text:

<OBJECT classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase 
= "http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" 
STYLE=Position:absolute;LEFT:0;TOP:0 after ALIGN =LEFT ID =RbxHandler 
WIDTH = 830 HEIGHT = 586 ALIGN = left onfocus="doMouseEnter();" onblur = 
"doMouseOut();" onmouseenter="doMouseEnter();" 
onmouseleave="doMouseOut();"> <PARAM NAME = movie VALUE = 
"Velkommen.swf"> <PARAM NAME = quality VALUE = high> <PARAM NAME = 
bgcolor VALUE = #FFFFFF> <PARAM NAME = menu VALUE = FALSE> <PARAM NAME = 
scale VALUE = exactfit> <EMBED Src = "Velkommen.swf" quality = high 
bgcolor = #FFFFFF WIDTH = 830 HEIGHT = 586 swLiveConnect = true NAME = 
RbxHandler TYPE = "application/x-shockwave-flash" PLUGINSPAGE = 
"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> 
</EMBED> </OBJECT>


What am I not seeing\doing right here?


best regards,
Thomas Kjeldahl Nilsson
Oslo, Norway



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: How to match\serve .swf (shockwave\flash) files in cocoon?

Posted by Jorg Heymans <jh...@domek.be>.
this seems ok to me. Did you try it from the built-in jetty ?

Jorg

Thomas Kjeldahl Nilsson wrote:
> Hello,
> 
> I'm having some trouble with serving .swf files in my cocoon webapp.
> There doesn't seem to be much info about this on the official project or 
> wiki pages. Maybe it's something mind-bogglingly obvious, but I've 
> stared myself blind on the sitemap file now.
> 
> Problem:
> 
> - I have several .swf files.
> 
> - My tomcat server seems to be correctly configured for the 
> application/x-shockwave-flash mime type.
> 
> - I've defined a match in the sitemap:
> 
> <map:match pattern="*.swf">
>   <map:read src="documents/tutorial/{1}.swf"
>             mime-type="application/x-shockwave-flash"/>
> </map:match>
> 
> - When accessing a .swf file in the webapp, I get something like this in 
> plain text:
> 
> <OBJECT classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase 
> = "http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" 
> STYLE=Position:absolute;LEFT:0;TOP:0 after ALIGN =LEFT ID =RbxHandler 
> WIDTH = 830 HEIGHT = 586 ALIGN = left onfocus="doMouseEnter();" onblur = 
> "doMouseOut();" onmouseenter="doMouseEnter();" 
> onmouseleave="doMouseOut();"> <PARAM NAME = movie VALUE = 
> "Velkommen.swf"> <PARAM NAME = quality VALUE = high> <PARAM NAME = 
> bgcolor VALUE = #FFFFFF> <PARAM NAME = menu VALUE = FALSE> <PARAM NAME = 
> scale VALUE = exactfit> <EMBED Src = "Velkommen.swf" quality = high 
> bgcolor = #FFFFFF WIDTH = 830 HEIGHT = 586 swLiveConnect = true NAME = 
> RbxHandler TYPE = "application/x-shockwave-flash" PLUGINSPAGE = 
> "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> 
> </EMBED> </OBJECT>
> 
> 
> What am I not seeing\doing right here?
> 
> 
> best regards,
> Thomas Kjeldahl Nilsson
> Oslo, Norway


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: How to match\serve .swf (shockwave\flash) files in cocoon?

Posted by Lars Huttar <la...@sil.org>.
Hi,
I have a similar match in my sitemap for serving .swf files and it works 
fine.
(Cocoon 2.1.2 and Tomcat 4.1)
Lars

Thomas Kjeldahl Nilsson wrote:

> Hello,
>
> I'm having some trouble with serving .swf files in my cocoon webapp.
> There doesn't seem to be much info about this on the official project 
> or wiki pages. Maybe it's something mind-bogglingly obvious, but I've 
> stared myself blind on the sitemap file now.
>
> Problem:
>
> - I have several .swf files.
>
> - My tomcat server seems to be correctly configured for the 
> application/x-shockwave-flash mime type.
>
> - I've defined a match in the sitemap:
>
> <map:match pattern="*.swf">
>   <map:read src="documents/tutorial/{1}.swf"
>             mime-type="application/x-shockwave-flash"/>
> </map:match>
>
> - When accessing a .swf file in the webapp, I get something like this 
> in plain text:
>
> <OBJECT classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
> codebase = 
> "http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" 
> STYLE=Position:absolute;LEFT:0;TOP:0 after ALIGN =LEFT ID =RbxHandler 
> WIDTH = 830 HEIGHT = 586 ALIGN = left onfocus="doMouseEnter();" onblur 
> = "doMouseOut();" onmouseenter="doMouseEnter();" 
> onmouseleave="doMouseOut();"> <PARAM NAME = movie VALUE = 
> "Velkommen.swf"> <PARAM NAME = quality VALUE = high> <PARAM NAME = 
> bgcolor VALUE = #FFFFFF> <PARAM NAME = menu VALUE = FALSE> <PARAM NAME 
> = scale VALUE = exactfit> <EMBED Src = "Velkommen.swf" quality = high 
> bgcolor = #FFFFFF WIDTH = 830 HEIGHT = 586 swLiveConnect = true NAME = 
> RbxHandler TYPE = "application/x-shockwave-flash" PLUGINSPAGE = 
> "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> 
> </EMBED> </OBJECT>
>
>
> What am I not seeing\doing right here?
>
>
> best regards,
> Thomas Kjeldahl Nilsson
> Oslo, Norway
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org