Mohamed Reda Arherbi Mohamed Reda Arherbi - 1 year ago 94
Javascript Question

Manipulate java List<Object> in Jquery

I want to manipulate a Java List coming from a controller in my code JQuery (in JSP File).

My list is of type


This is my Controller action:

public ModelAndView index() {
ModelAndView mv = new ModelAndView("collaborateurs"); //JSP name
mv.addObject("collaborateurs", collaborateurService.getAll()); // ListName
return mv;

And I want to show for example the property
for my second item in my list.


Thank you for your help.

dit dit
Answer Source

Use simple index access and variable name:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download