mercredi 25 mars 2015

what is the use of @Responsebody.can we use it in simpleformcontroller in referencedata method

@Override protected @ResponseBody Map> referenceData(HttpServletRequest request) throws Exception { Map> map = new HashMap>(); List list = new ArrayList(); CarManager car1 = new CarManager(1,"scoda"); CarManager car2 = new CarManager(2, "audi"); CarManager car3 = new CarManager(3, "maruthi"); CarManager car4 = new CarManager(4, "tata"); list.add(car1); list.add(car2); list.add(car3); list.add(car4); map.put("list", list); return map; }


Aucun commentaire:

Enregistrer un commentaire