if ("request".equals(mapping.getScope()))
request.setAttribute(mapping.getAttribute(), form);
else
session.setAttribute(mapping.getAttribute(), form);
request.setAttribute(mapping.getAttribute(), form);
else
session.setAttribute(mapping.getAttribute(), form);
jsp端:
<td><html:select name="affairForm" property="affairType">
<html:options collection ="affairTypes" property="typeID" labelProperty="typeName"/>
</html:select>
</td>
action端:
request.setAttribute ("affairTypes", affairTypes);
<logic:iterate id="roleBean" name="roles">
<bean:write name="roleBean" property="description"/>
</logic:iterate>
在actionzhong 用 request.setAttribute("roles",你的list.如ArrayList)