Struts2 -iterator 标签
1.使用框架标签 必须先导入两个包
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="xs" uri="/struts-dojo-tags" %> (在 lib中加载包)
2 head>
<s:head/>
<xs:head/>
</head>
还必须定义使用包
3.<s:form action="Login">
<s:textfield name="name" label="用户名"/>
<s:radio list="{'男','女'}" name="sex"></s:radio>
<s:select list="{'2010','2011','2012','2013'}"></s:select>
<s:checkboxlist list="{'篮球','足球','乒乓球'}" name="stu_like"></s:checkboxlist>
<s:doubleselect label="选择你在的省"
name="sheng" list="{'江苏','浙江'}" doubleName="city" doubleList="top=='江苏'?{'南京','常州'}:{'杭州','湖州'}"></s:doubleselect>
<xs:datetimepicker name="birthday" label="生日" />
<s:submit value="登录"></s:submit>
</s:form>
最后在使用标签