Hi,

You sould really insist and try to develop a strategy to find why it doesn't
work.

First, what to you mean when you say that Flash doesn't read back the data ?
Is your servlet triggered by the movie ? To test for this, you can simply
add a System.out.println and see if you get it on the console. If not, the
problem lies (a least) in the flash movie.

If the servlet is activated, you should test the data returned. Just call
the servlet "by hand", typing it's url in a browser window. Don't forget to
add a doGet method for this if needed. You can also use a form if you want
to test the doPost method.

You should not have the doGet method call the doPost method, but duplicate
the doPost, with one noticeable change so that you can determine which
method responds (for example, printing the method name on the console).

Your browser will either display the data, or ask what you want to do with
it (following the content-type you set in the servlet). In the later case,
load the data in an editor and see if it is ok.

If all this is okay, it should work (remember : with the to duplicate
methods, doGet and doPost). You might then go on to the last step : test the
movie and the serlvet together. If it doesn't work with get, try post. If it
works with get, check to see if the doGet method actually responded. You
might be surprised to see that whether you ask for get or post, you get
post.

Last, if nothing works, send me your code.

Pierre-Yves

P.S. no one should be at work on te first of may :-)

-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de
Frauke Nonnenmacher
Envoy� : mardi 1 mai 2001 15:20
� : [EMAIL PROTECTED]
Objet : Re: Servlet communication with embedded applications (FLASH etc)


OK, I've tried and tried, but I can't get the Flash movie to read the data
back :(

Would anybody here be willing to have a look at the servlet and Flash code
and tell me if there's anything wrong?

The biggest problem at the moment is that I don't know where the problem
lies - the Flash movie, the servlet or even the server... I have searched
the web for examples but haven't found anything other than the things that
were already mentioned here.

So, if anybody here would like to look at the files in question or can point
me to a web site where I can find both a sample .java file for a servlet and
a .fla file for a movie I'd be really grateful...

Frauke

Frauke Nonnenmacher
Fat Cat Cartoons
www.fatcatoons.com <http://www.fatcatoons.com>
___________________________________________________
The statements and opinions expressed here are my own
and do not necessarily represent those of the VEGA Group.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to