Flex中ArrayCollection 与java中的ArrayList互转


  这里说这是Flex用remoting传一个ArrayCollection到后台(后台也用ArrayCollection接参)之后如何转成ArrayList. public ArrayList convertArrayCollection(ArrayCollection array){ ArrayList myObjectArray = new ArrayList(); ASTranslator ast = new ASTranslator(); MyObject myObject; ASObject aso; for (int i=0;i Flex端也是一样),只不过ArrayCollection的vo对象要和后台中的bean对应起来(属性名一样,否则接不到值),需要注意的是Flex中vo对象中的属性要用public.

猜你喜欢

转载自on250on.iteye.com/blog/1573074