Illegal use of <when>-style tag without <choose> as its direct parent
2017-10-24 09:21
6007 查看
Exception Name: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent
显示完整错误信息
Exception Details: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent at
看看你是否漏了<c:choose></c:choose>标签
<c:when></c:when>需要嵌套在<c:choose></c:choose>标签中
或者可以选择直接使用<c:if></c:if>标签
<c:choose>
<c:when test="<boolean>">
...
</c:when>
<c:when test="<boolean>">
...
</c:when>
...
...
<c:otherwise>
...
</c:otherwise>
</c:choose>
http://www.runoob.com/jsp/jstl-core-choose-tag.html
显示完整错误信息
Exception Details: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent at
看看你是否漏了<c:choose></c:choose>标签
<c:when></c:when>需要嵌套在<c:choose></c:choose>标签中
或者可以选择直接使用<c:if></c:if>标签
<c:choose>
<c:when test="<boolean>">
...
</c:when>
<c:when test="<boolean>">
...
</c:when>
...
...
<c:otherwise>
...
</c:otherwise>
</c:choose>
http://www.runoob.com/jsp/jstl-core-choose-tag.html
相关文章推荐
- 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
- jstl c:choose>、<c:when>和<c:otherwise>标签 [转]
- Illegal redeclaration of module <glbl>.&Element index 2 into memp is out of bounds
- <c:choose> <c:when test="">
- error C2275: 'time_t' : illegal use of this type as an expression
- error C2275: "xxx"illegal use of this type as an expression
- Illegal redeclaration of module <glbl>.&Element index 2 into memp is out of bounds
- jsp页面中jstl标签详解 包括< c:choose><c:foreach> <c:when> <c:otherwise>
- 编译错误error C2587: '_U' : illegal use of local variable as default parameter的问题
- The tag of<o:p> and the <?xml:namespace prefix = o /> in the html
- <p>42: Encountered illegal body of tag "c:set" tag, given its attributes.</p>
- iterator+字符串截取 || iterator+ if标签结合 ||iterator+字符串截取+if标签结合 || <c:choose>+<c:when>+<c:forEach>
- <c:choose>与<c:when>的一定要配合使用
- error C2275: 'xxx' : illegal use of this type as an expression
- <c:when> <c:otherwise> <c:choose> 嵌套 遍历 jstl
- <style name="Theme.Base.AppCompat.DialogWhenLarge" 的错误是error: Error retrieving parent for item: No