简体   繁体   中英

Unterminated <c:if tag

I'm getting an Unterminated <c:if tag error. This is my code and I don't think that there is anything missing?

<select name="<portlet:namespace /><%=Const.LR_ROLE%>">
    <c:forEach items="${lrRoles}" var="role">
        <c:if test="${role.name != 'user' && role.name != 'User'}">
            <option value="${role.roleId}" <c:if="${role.roleId == 'curLrRoleId'}"> selected="selected" </c:if>> ${role.name}</option>
        </c:if>
    </c:forEach>
</select>

Correct your <option> tag. Attribute test is missing.

<option value="${role.roleId}" <c:if test="${role.roleId == 'curLrRoleId'}">selected="selected"</c:if>>${role.name}</option>
                                     ^

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM