• 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

flash file in jsp

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends ,

I need to display flash file in jsp. I am using struts2 frame work. I am able to play flash file in jsp if it is in war .But i need it to take from a folder .
here is the code i'm using can any body help me to resolve this problem

<object width="500" height="500">
<param name="movie" value="C:/dev/lmsdev/uploaded/m02s02.swf">
<embed src="images/m02s02.swf" width="500" height="500">
</embed>
</object>

Thanks in advance ,


 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

value="C:/dev/lmsdev/uploaded/m02s02.swf"


You can't use absolute paths that point to a local file in web pages. You need to use relative paths, like the one in the "embed" tag.
 
geeta kumari gonchala
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,

I cant deploy that flash files in server. SO i should take it from some folder on the desk. So tried that by giving complete path . Is there any way to take that flash file other than in war .

Thanks in avance.
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not possible for security reasons. The file must reside on a server.
 
    Bookmark Topic Watch Topic
  • New Topic