wood burning stoves
The moose likes Servlets and the fly likes Serving up a Flash file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Serving up a Flash file" Watch "Serving up a Flash file" New topic

Serving up a Flash file

Paul Erion

Joined: Jul 11, 2003
Posts: 5
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?



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 ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

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

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Moving to HTML and JavaScript, just because
I agree. Here's the link: http://aspose.com/file-tools
subject: Serving up a Flash file
It's not a secret anymore!