Click here to Skip to main content
15,904,023 members

Comments by boude (Top 2 by date)

boude 13-Dec-11 3:35am View    
there is no error. It just hangs. There is no output at all
boude 23-Nov-11 8:52am View    
when i create the list on the server side, i append a hashmap to the arraylist.
This is the backend code


ArrayList list = new ArrayList();

// Use this code to add nodes to the map
System.out.println("Current Node is: " + currentNode);
if (currentNode == 1) {
Map map = new HashMap();
map.put("type", "child");
map.put("id", "childNode1");
map.put("href", "www.google.com");
map.put("description", "This is the google link");
list.add(map);
// End with creating Node

map = new HashMap();
map.put("type", "child");
map.put("id", "childNode2");
map.put("href", "www.yahoo.com");
map.put("description", "This is the yahoo link");
list.add(map);
System.out.println("Size of list is: " + list.size());
System.out.println("Sending back the array List");
}