<%@ taglib prefix="s" uri="/struts-tags" %>
<s:bean name="org.apache.struts2.util.Counter" id="counter">
<s:param name="first" value="0" />
<s:param name="last" value="10" />
<select id="" class="selectsss" name="">
<s:iterator>
<option value="${current-1}">${current-1}</option>
</s:iterator>
</select>
</s:bean>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<select id="" class="selectsss" name="">
<c:forEach var="i" begin="0" end="9" step="1">
<option value="${i}">${i}</option>
</c:forEach>
</select>
转载于:https://blog.51cto.com/734242603/1189414