This content has been marked as final.
Show 1 reply
-
1. Re: arrayList problem with @WebRemote
dhiraj Feb 12, 2009 12:39 PM (in response to dhiraj)i forget to add i
here is the changed version but still it is repeating first object
i tried the same on dwr but there it worked every thing perfectlypublic List<Message> displayMessage() { System.out.println("displaymsg called"); List<Message> msgList = new ArrayList<Message>(); for (int i = 0; i < 10; i++) { msgList.add(new Message("dhiraj"+i,"hi"+i,"raj"+i)); } System.out.println(msgList.size()); return msgList; }