Just think out of the box a little on this one. Your .swf file can be literally anywhere on the web and on any web server as long as it's accessible. Then just write your code as:

<HTML>
   <BODY bgcolor="#ffffff">
       <OBJECT width="300"  height="200"  align="center">
           <PARAM name="movie"   
value="http://www.some.webserver.com/someDir/test.swf";>

<EMBED src="http://www.some.webserver.com/someDir/test.swf"; type="application/x-shockwave-flash" width="300" height="200">
</EMBED>
</OBJECT>
</BODY>
</HTML>



You could also use relative urls such as "/someDir/test.swf", "./someDir/test.swf" or "test.swf" if you want as long as your .swf file is available on the same server as your .html or jsp.


As far as avoiding having serveral copies of the same file, that's really a matter of how you handle the dev project. You could place them all in a directory on a server separate from your webapp and just link to them. This option is a favorite of people who put their Tomcat service behind Apache and have Apache serve static content.

Or (and I like this one better) have a one directory repository for all of the shared .swf files and use an ant compile task to copy them so they are included in building the .war file. when you change one of the files, just re-run the ant builds and deploy your new .war files. At your level, this might be one to keep in mind but not try until you have some other successes first.

--David

Paul Erion wrote:

   > Shey Rab Pawo <[EMAIL PROTECTED]> wrote:
   > Your conclusion is not correct.  What Mr. Bainbridge told you is true,
   > but that does not restrict where you can store the files on the server.

Ok, now I'm confused ...

  [Bainbridge]: What you need to do is generate the Flash file in
          in a directory that Jboss/Tomcat serves files from like
          webapps\yourwebappname\flash_files or similar or
          similar and then the value= in your embed needs to be
          relative to the location of the JSP that includes the tag.

My interpretation of the first part of the above is that the generated
Flash files need to reside in the web app's directory structure. However, you're saying that that's not the case -- they can reside
wherever on the server. So, is it the second part of Mr. Bainbridge's
statement that provides the clue for accessing these files? That as
long as the Flash file's path is specified relative to the location of
the JSP (which includes the "embed" tag), then I'm good to go.


Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to