Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Serving up a Flash file

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using JBoss/Tomcat and JSP to serve up Flash (swf) files, but I'm running into a little difficulty. The Flash file plays fine when the browser is running on the same machine as the server; but, is a no-show when I access the web page from a different machine -- though the rest of the page (such as it is) is displayed. Oh, and the Flash files are generated dynamically; in other words, there's not just one flash file that I can squirrel away.

Following is the HTML that gets generated by the JSP (it's been pared down for testing purposes):

I've tried a couple of different values for the file specification (for example, "file:///C:/FlashFiles/test.swf"; and "C:/FlashFiles/test.swf"), but this hasn't had any effect. Is this a security issue? Any thoughts on what could be going on?

Thanks,

Paul

p.s., I'm using Windows XP Pro/JBoss 3.2.3/Tomcat 4.1.29

[ February 17, 2005: Message edited by: Paul Erion ]
[ February 17, 2005: Message edited by: Paul Erion ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're pointing it to a file on the local machine.
<PARAM name="movie" value="file:/C:/FlashFiles/test.swf">

Move the flashfiles into the root of your webapp and set the value to
value="FlashFiles/test.swf".
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to HTML and JavaScript, just because
 
I am mighty! And this is a mighty small ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic