日期:2014-05-16 浏览次数:20298 次
<%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<s:if test="#parameters['siteId']!=null"> </s:if>
<c:if var="current" test="${page.pageNo == i}"> ${i} </c:if> <c:if test="${not current}"> </c:if>
<s:if test="!emptySite"></s:if>
<c:if test="${emptySite}"></c:if>
<s:select list="pageList" listKey="key" id="swpTplCata" listValue="value" name="pageId" />
<s:if test="checkedRoleIds.size() == 0"> <s:radio name="checkedRoleIds" list="allRoleList" listKey="id" listValue="desc" /> </s:if> <s:else> <s:radio name="checkedRoleIds" list="allRoleList" listKey="id" listValue="desc" value="checkedRoleIds[0]" /> </s:else>
private List<Long> checkedRoleIds; //用户角色 public List<Long> getCheckedRoleIds() { return checkedRoleIds; } public void setCheckedRoleIds(List<Long> checkedRoleIds) { this.checkedRoleIds = checkedRoleIds; }
<s:form method="post" action="%{#request.contextPath}/account/user!save" theme="simple" enctype="multipart/form-data" id="register_form" name="form">
<s:iterator value="page.result"> </s:iterator>
<c:forEach var="i" begin="1" end="${page.totalPages}" step="1"> ${i} </c:forEach>
<c:forEach items="${model}" var="model"> ${model.key} ${model.value} <br /> </c:forEach>