Illegal use of <when>-style tag without <choose> as its direct parent
2017-04-22 15:30
941 查看
报错信息:
javax.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent
<c:choose>
<c:when test=”${people.age<18 }”>
<h2>小于18</h2>
</c:when>
<c:when test=”${people.age=18 }”>
<h2>等于18</h2>
</c:when>
<c:otherwise>
<h2>大于18</h2>
</c:otherwise>
</c:choose>
少了<c:chosse>标签
javax.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent
<c:choose>
<c:when test=”${people.age<18 }”>
<h2>小于18</h2>
</c:when>
<c:when test=”${people.age=18 }”>
<h2>等于18</h2>
</c:when>
<c:otherwise>
<h2>大于18</h2>
</c:otherwise>
</c:choose>
少了<c:chosse>标签
相关文章推荐
- Illegal use of <when>-style tag without <choose> as its direct parent
- Illegal use of &lt;when&gt;-style tag without &lt;choose&gt; as its direct parent
- 报错(Illegal use of <when>-style tag without <choose> as its direct parent)
- javax.servlet.JspTagException:Illegal use of &lt;when&gt;-style tag without &lt;choose &gt;as its di
- javax.servlet.JspTagException:Illegal use of <when>-style tag without <choose >as its di
- <c:choose> <c:when test="">
- error C2275: 'time_t' : illegal use of this type as an expression
- <c:when> <c:otherwise> <c:choose> 嵌套 遍历 jstl
- error C2275: 'FILE' : illegal use of this type as an expression
- <c:choose>与<c:when>的一定要配合使用
- <c:choose> <c:when> <c:otherwise>--------JSTL
- Html: display text in monospaced style (including special char space/hyphen etc.) - tag <tt>
- iterator+字符串截取 || iterator+ if标签结合 ||iterator+字符串截取+if标签结合 || <c:choose>+<c:when>+<c:forEach>
- <p>42: Encountered illegal body of tag "c:set" tag, given its attributes.</p>
- jsp页面中jstl标签详解 包括< c:choose><c:foreach> <c:when> <c:otherwise>
- jstl c:choose>、<c:when>和<c:otherwise>标签 [转]
- error C2275: 'xxx' : illegal use of this type as an expression
- JSP的<c:choose> <c:forEach> <c:if> <c:when> <c:set>标签
- JSTL标签之<c:choose><c:when><c:otherwise>标签
- c标签中的<c:choose><c:when></c:when></c:choose>的用法