1.需要的jar文件:
2.struts.xml配置
3.JSP页面中
<tr>
<td class="narrow-label">请选择父类</td>
<td>
<select id="stZerostts" name="stZerostts">
<option value="#">顶级分类</option>
<s:iterator id="it" value="listZero">
<option value="<s:property value="#it.id"/>"><s:property value="#it.typeName"/></option>
</s:iterator>
</select>
<select id="stOnestts" name="stOnestts">
<option value="#">一级分类</option>
</select>
<select id="stTwotts" name="stTwotts">
<option value="#">二级分类</option>
</select>
</tr>
动态的加载select选项。