98
rated 0 times
[
101]
[
3]
/ answers: 1 / hits: 12285
/ 11 Years ago, tue, december 10, 2013, 12:00:00
Controller
List<Object[]> permissionList = new ArrayList();
//fill permissionList with list of object ayyays (objetct[0] = permission id, object[1] = permission)
model.addAttribute(permissionList, permissionList);
jsp
var allpermissionList = ${permissionList};
$.each(allpermissionList, function (index, av) {
var id = av[0];
vat name=av[1];
//set values to div element
});
i can't loop through my list with js $each()... av[0] and av[1] cannot cannot obtain.
More From » java