This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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:
subject: Serving up a Flash file
Similar Threads
Serving up a Flash file
I/O exception while reading: C:\-classpath..?
How to run the applet from command line?
Applet .....need help to run the applet
how to embed pdf in html