日期:2014-05-16 浏览次数:20335 次
package com.xxx.pojo; public enum CreateUserResult { success,duplicateLoginName; }
<c:choose> <c:when test="${result eq CreateUserResult.duplicateLoginName}"> <span class="error">您输入的登录名已经存在了,请更换登录名重试!</span></c:when> <c:otherwise></c:otherwise> </c:choose>
<c:set var="duplicateLoginName" value="<%=CreateUserResult.duplicateLoginName %>"/> <c:if test="${not empty result }"> <c:choose> <c:when test="${result eq duplicateLoginName}"> <span class="error">您输入的登录名已经存在了,请更换登录名重试!</span></c:when> <c:otherwise></c:otherwise> </c:choose> </c:if>