all groups > macromedia flash flash remoting > march 2004 >
You're in the

macromedia flash flash remoting

group:

sending structured data to java servlet


sending structured data to java servlet killjoy_tr
3/30/2004 11:12:46 AM
macromedia flash flash remoting:
Hi,

I'm using remoting to call a servlet from Flash. Normally, I send my data as
below;

myservice.myservlet("param1","param2"....);

and my servlet receives this data into an ArrayList as below;

ArrayList list = (ArrayList)request.getAttribute("FLASH.PARAMS");

What I actually need to do is to send a structured data (Array or Associative
Array) from flash to servlet and recieve it into a HashTable. Can I do such a
thing?

Thanks in advance ;-)


Re: sending structured data to java servlet Pete
4/8/2004 2:55:10 PM
Yep, try it out. An ActionScript Associative Array or Object used as an
argument will become a HashMap in Java. Strict ActionScript Arrays will
become ArrayLists in Java.


[quoted text, click to view]

AddThis Social Bookmark Button