java 代码 [select name="puOrganization.orgId" style="WIDTH: 186px;" ] [logic:iterate id="orgAll" name="orgAllList" ] [option value="${orgAll.orgId}"] [bean:write name="orgAll" property="orgName"/] [/option] [/logic:iterate] [/select] 上面的代码相当于: java 代码 [html:select property="puOrganization.orgId" value="${equp.puOrganization.orgId}" styleClass="formDetailSelect" style="width:236px" ] [logic:present name="orgAllList"] [html:options collection="orgAllList" labelProperty="orgName" property="orgId"/] [/logic:present] [/html:select] 说明: java 代码 [select ]中的name对应于ActionForm中的属性名,(有可能是类类型,则为“类名.别的表的属性名”其中属性为外键),有可能为一般的属性(String) [logic:iterate id=""]中的ID自己定义跟里面包含的标签中的name对应,一般跟 外面标签对应 例如:[logic:present name=""]中的name对应! 而name属性则对应于Action中的SetAttribute("A",B);中的A [bean:write ]中的name跟[logic:iterate ]中的ID对应,而property为puOrganization那个类的属性!