简体   繁体   English

将对象从Java(BlazeDs)服务器传递到前端Flex应用程序

[英]Passing Objects from Java(BlazeDs) Server to Front end Flex app

I am looking for some help. 我正在寻找帮助。 I have set up a Java Dynamic web project which uses BlazeDs. 我已经建立了一个使用BlazeD的Java动态Web项目。 This is on a Tomcat server and can send and recieve strings to a front end Flex project. 它位于Tomcat服务器上,可以将字符串发送和接收到前端Flex项目。

My question is now that the AMF channels are set up to communicate how can I pass Objects such as ArrayLists or Two Dimensional arrays accross the channel and render them in the flex app (Say through a datagrid?) Any help will be greatly appreciated! 现在我的问题是,设置了AMF通道以交流如何在通道中传递诸如ArrayLists或二维数组之类的对象并将其呈现在flex应用程序中(通过datagrid进行说明)。任何帮助将不胜感激!

Thanks 谢谢

The mechanism to send Objects is the same as with Strings. 发送对象的机制与字符串相同。 Instead of a service returning or receiving a String it can return or receive an Object, a List, etc. 代替返回或接收字符串的服务,它可以返回或接收对象,列表等。

What you need to keep in mind is how data is serialized/de-serialized, this is, how data is converted from an ActionScript data type to a Java data type and viceversa. 您需要记住的是如何对数据进行序列化/反序列化,即如何将数据从ActionScript数据类型转换为Java数据类型,反之亦然。 This link can help link text 此链接可以帮助链接文本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM