Hi, I have some objects like the two below
public class SavedSearch { String title; ArrayList<SearchParameters> params; }
public class SearchParameter { String field; int operator; String match; }
On the JSP page in the input form, I use <input type="text" name="title"> and when I breakpoint inside the FormController, the SavedSearch object has title filled in.
But the ArrayList is always empty. It's not Spring's fault that it can't read my mind, but how do I indicate that field, operator and match are part of params? I tried naming them paramsField, paramsOperator, paramsMatch but no luck.
I know this is not a hard question, but I'm a bit stumped.
Sorry, I forgot to url encode the < and > in the object definition.