Rohit kumar sharma wrote:hello everyone......I am using flex Builder3
Application details
Front end:Flex builder 3
Back end: Blazeds,Servlets
When i m sending arraylist from servlets to flex,i am unable to type casting it in arraycollection.(I have to work flex builder 3,as most of the project is based on flex builder 3)
It is showing null pointer error...
How can i collect arraylist(sent from server) in arraycollection on flex side(cleint).
say for e.g you have arraylist in myDto.java and you want to return to client.
you need equivalent bindable Dto with a property of type ArrayCollection.
if you have arraylist in map and you want to hold it in arraycollection.
try var arrcoll:ArrayCollection = myMap["myList"] as ArrayCollection;
if you want to hold in Array.
try var arr:Array = (myMap["myList"] as ArrayCollection).source;