Re: Serving up a Flash file

2005-02-20 Thread Paul Erion
Thanks to everyone for their responses.  It's amazing how large some
of the gaps in my knowledge truly are.

Paul

p.s., Sorry I didn't mean to disappear ... water is an amazing thing,
given enough volume, it can get into all sorts of places you wouldn't
expect; so I've been learning all sorts of things about filling
sandbags, their proper placement, and how tired one can get carrying
those puppies around.  Ahh, sunny southern California, where it hardly
ever rains.

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



Re: Serving up a Flash file

2005-02-18 Thread Paul Erion
 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]



Serving up a Flash file

2005-02-17 Thread Paul Erion
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 (which fills in
the name of the Flash file to be displayed):

HTML
BODY bgcolor=#ff
OBJECT width=300  height=200  align=center
PARAM name=movie   value=file:/C:/FlashFiles/test.swf

EMBED src=file:/C:/FlashFiles/test.swf 
type=application/x-shockwave-flash width=300 height=200
/EMBED
/OBJECT
/BODY
/HTML

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 JBoss 3.2.3/Tomcat 4.1.29 on Windows XP Pro

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



Re: Serving up a Flash file

2005-02-17 Thread Paul Erion
 Jason Bainbridge [EMAIL PROTECTED] wrote:
 Okay that scares me, you're developing web applications ...

Don't worry.  No one's paying me for this -- I'm just fooling around
on my own, trying to learn some stuff

 ... but don't know what the file:/ URI does?

Well, I *am* kind of an idiot -- and I'm also pretty sure that nothing
that I write here will disprove it.

 Anyway why it works on the localhost is that it is trying to load the
 file from the C: drive of the machine the page is opened on and well
 it's there on the server but obviously not on the client.

Thanks for the explanation.  I was erroneously assuming that the URL
would be evaluated in the context of the server.

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

This makes it interesting ... in the scenario that I'm envisioning,
the Flash files are generated prior to a user's request to view the
file, and there's not a fixed number of files (that is, new files will
be continuously generated).  Consequently, I didn't want to store the
files in the same directory hierarchy as the web app (somehow that
didn't seem like a good idea).   So, if I understand you (and remember
I'm a bit dense) it's just not possible, via the embed/object tag to
specify/access a file that doesn't reside in the directory hierarchy
that JBoss/Tomcat serves files from.

Once thanks for the info, it was helpful.  And if  you have any other
thoughts, suggestions, or pointers to docs, I'd love to hear them.

Paul

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