How to bind an object list with thymeleaf?
You need a wrapper object to hold the submited data, like this one: public class ClientForm { private ArrayList<String> clientList; public ArrayList<String> getClientList() { return clientList; } public void setClientList(ArrayList<String> clientList) { this.clientList = clientList; } } and use it as the @ModelAttribute in your processQuery method: @RequestMapping(value=”/submitQuery”, method = RequestMethod.POST) public String processQuery(@ModelAttribute ClientForm … Read more