报错(Illegal use of <when>-style tag without <choose> as its direct parent)
来源:互联网 发布:cms stop the world 编辑:程序博客网 时间:2024/06/03 20:04
报错描述:javax.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent
分析发现:
使用jstl标签: 和 时必须同时使用使用
例如:
<c:forEach begin="1" end="${pageBean.totalPage }" var="i"> <c:choose> <c:when test="${pageBean.pageNumber==i }"> <li class="active"><a>${i }</a></li> </c:when> <c:otherwise> <li><a href="${pageContext.request.contextPath}/ProductServlet?method=findProductByCid4Page&pageNumber=${i}&cid=${param.cid}">${i }</a></li> </c:otherwise> </c:choose> </c:forEach>
阅读全文
0 0
- 报错(Illegal use of <when>-style tag without <choose> as its direct parent)
- Illegal use of <when>-style tag without <choose> as its direct parent
- Illegal use of <when>-style tag without <choose> as its direct parent
- Illegal use of <when>-style tag without <choose> as its direct parent
- javax.servlet.JspTagException:Illegal use of <when>-style tag without <choose >as its di
- <c:choose>、<c:when> ||<c:otherwise>
- ><
- <div><span>
- <html:errors/>
- <noscript>标签
- >_<~!!!
- #include<iomanip>
- jQuery :eq,lt,gt
- <周易>
- <!--[if IE]>….<![endif]--> (<!--[if !IE]>||<![endif]-->)
- < >
- <logic:iterate>
- 分界线<hr/>
- HDU 1556
- EOJ 1886 有一个数很特别
- 【Scikit-Learn 中文文档】无监督降维
- 分析VO、POJO、DTO、DAO、PO......
- POJ 2701 与7无关的数
- 报错(Illegal use of <when>-style tag without <choose> as its direct parent)
- 数据类型
- iOS原生与RN的通信(Swift版)
- weblogic 无法生成log4j日志
- 教你一步步搭建和运行完整的开源搜索引擎
- 对象和实例,对象的创建
- spring <context:component-scan>使用说明
- 原生JS完成todolist小项目
- 使用Sqoop进行数据的导入