【发布时间】:2010-12-09 11:55:22
【问题描述】:
我有一个带有 struts 标签的表单,如下所示。
<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>
在我的操作中,我将 catList 设置如下
List <Category> catList = getCategoryList();
request.setAttribute("catList", catList);
这里的Category是一个以catName和catId为变量的类。
我收到一条错误消息,提示找不到属性类别的 getter。 我错过了什么?
【问题讨论】: