Announcement Announcement Module
Collapse
No announcement yet.
how return ArrayList in @Controller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how return ArrayList in @Controller

    hi


    i have in my @Controller

    @RequestMapping(method=RequestMethod.GET,value="/registro")
    public ModelAndView detalleEvento() throws ExceptionCmm {
    RegistroUsuario registro = new RegistroUsuario();
    ModelAndView mav = new ModelAndView(REGISTRO_VIEW_KEY);
    mav.addObject("registro", registro);
    return mav;
    }

    and REGISTRO_VIEW_KEY find a tiles with that name and charge a view with objects en the ModelAndView mav,
    whith these i fill a <form:select path="values" onChange="">
    <c:forEach var="x" items="${resitro.items}">
    <form:option ....>
    </forEach>
    </form:select>
    but i want to fill other select with the "onChange" of the first select
    i trying to do :

    @RequestMapping(method=RequestMethod.GET,value="/registroCiudad")
    public RegistroUsuario detalle(int estadoId) throws ExceptionCmm {
    RegistroUsuario registro = new RegistroUsuario(estadoId);
    ModelAndView mav = new ModelAndView(REGISTRO_VIEW_KEY);
    mav.addObject("registro", registro);
    return mav;
    }

    but these reload the page and lost the info typed by the user , itīs a registration form

    Who can i just send a arrayList to the view without reload ??

    pls help
Working...
X