@RequestMapping(value="/addClient.do", method = RequestMethod.GET) protected ModelAndView Submit(HttpServletRequest request, HttpServletResponse response) throws Exception { MyForm = new MyForm(); MyForm.setClientList(MyService.getClientList(/*"30-JUN-15"*/)); System.out.println("Size of list : "+MyForm.getClientList().size()); //-- Displayed as 10 which is correct ModelAndView model = new ModelAndView("feeMaintenance"); model.addObject("clientForm",MyForm); model.addObject("selectedMenu", "MenuSelected"); model.addObject("clientsList",MyForm.getClientList()); return model; }
<body> <form:form method="post" modelAttribute="clientForm" action="${userActionUrl}"> <tr> <td align="left"> <form:select path="clientList"> <form:option value="-" label="------Select Client ------"> <form:options items="${clientsLists}"> </form:options></form:option></form:select> </tr> </td> </form> </body>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)