I’ve a form with struts tags as below.
<html:form styleId='catform' action='/cat/submit.html' method='post'>
<html:select property='catName' styleId='catName'>
<html:options collection='catList' property='category'>
</html:select>
</html:form>
In my action I’m setting catList as below
List <Category> catList = getCategoryList();
request.setAttribute("catList", catList);
here Category is a class with catName and catId as variables.
I’m getting an error which says no getter for the property category found.
What am I missing?
You need to put
struts is trying to get the
categoryproperty of theCategoryinstance