jsp页面中使用jstl的< c:choose> 错误

jsp页面中使用jstl的< c:choose> 错误

今天些项目的时候在jsp报的这个错,找了很久没找到原因:

<c:choose>
                       
        <c:when test="${pageList.page==1}">
            <li class="active"><a href="javascript:void();"title="首页">首页a>li>                       
        c:when>
        
        <c:otherwise>
            <li class="active"><a href="/backend/userlist.html?currentpage=1&s_LoginCode=${s_loginCode}&s_referCode=${s_referCode}&s_roleId=${s_roleId}&s_isStart=${s_isStart}" title="首页">首页a>li>                           
        c:otherwise> 
        c:choose>  
    
        
        <c:if test="${pageList.prevPages!=null}">
            <c:forEach items="${page.prevPages}" var="num1">
                <li class="active"><a href="/backend/userlist.html?currentpage=${num1}&s_loginCode=${s_loginCode}&s_referCode=${s_referCode}&s_roleId=${s_roleId}&s_isStart=${s_isStart}">${num1}a>li>
            c:forEach>
        c:if>
    
        <li class="active"><a href="#" title="${pageList.page}">${pageList.page}a>li>
    
            
            <c:if test="${pageList.nextPages!=null}">
                <c:forEach items="${pageList.nextPages}" var="num2">
                <li class="active"><a href="/backend/userlist.html?currentpage=${num2}&s_loginCode=${s_loginCode}&s_referCode=${s_referCode}&s_roleId=${s_roleId}&s_isStart=${s_isStart}">${num2}a>li>
                c:forEach>
            c:if>
    

    <c:if test="${pageList.pageCount!=null}">
        <c:choose>
        
            <c:when test="${pageList.page == pageList.pageCount}">
                    <li class="active"><a href="javascript:void();"title="尾页">尾页a>li>
            c:when>
        
            <c:otherwise>
                <li class="active"><a href="/backend/userlist.html?currentpage=${pageList.pageCount!=null}&s_LoginCode=${s_loginCode}&s_referCode=${s_referCode}&s_roleId=${s_roleId}&s_isStart=${s_isStart}" title="首页">首页a>li>                          
            c:otherwise>
        c:choose> 
        c:if>
        <c:if test="${pageList.pageCount == null}">
            <li class="active"><a href="javascript:void();" title="尾页">尾页a>li>
        c:if> 
严重: Servlet.service() for servlet dispatcherServlet threw exception
org.apache.jasper.JasperException: 

Validation error messages from TagLibraryValidator for c in /WEB-INF/pages/backend/userList.jsp

173: Illegal text inside "c:choose" tag: "

你可能感兴趣的:(jsp)