I would like to know if there is any way to manipulate an object created by the Spring mvc ModelAndView in javascript. Example: I want to add the object through ModelAndView, convert a json and work with it in javascript.
public ModelAndView painelConteudo(HttpSession session) {
List<PainelConteudo> painelConteudoList = painelConteudoDAO.findByFilialSegmentoIn(filialSegmentos);
ModelAndView mv = new ModelAndView("painelconteudolista");
mv.addObject("painelconteudolista", painelConteudoList);
return mv;
}
In the java script I would get the object panel and convert it into a json.