0
ModelAndView mv=new ModelAndView();
BookList<book> list=new ArrayList<book>();
list.add(new book(1,"book1"));
list.add(new book(2,"book2"));
mv.addObject("attlist", list);

now I want to retrieve that list object into javascript so that i could manipulate that value

  • JSON is one possibility. You need to try something, see http://stackoverflow.com/help/how-to-ask – zhon Aug 16 '16 at 19:18
  • Look at this post: http://stackoverflow.com/questions/6173093/spring-return-json-from-controller-as-modelandview – mcgraphix Aug 16 '16 at 19:44
  • you can use google web toolkit, see this -> http://stackoverflow.com/questions/5115225/handle-java-object-in-javascript – ralf htp Aug 17 '16 at 09:05

0 Answers0