JSTL 的 if else : 有 c:if 没有 else 的处理
2013-10-29 10:35
316 查看
jstl的c:if 没有else 想要实现if...else...: 可以用下面的解决 -------------------------------------------------------------------- 结构: <c:choose> <c:when test=""> 如果 </c:when> <c:otherwise> 否则 </c:otherwise> </c:choose> 代码: <c:choose> <c:when test="${sessionScope.USERTYPE == 'inner'}"> <c:set value="${context_root}/igmgr/MEB004.dow" var="action" scope="page"/> </c:when> <c:when test="${sessionScope.USERTYPE == 'merc'}"> <c:set value="${context_root}/igmgr/MEB021.dow" var="action" scope="page"/> </c:when> <c:otherwise> <c:set value="${context_root}/igmgr/MEB020.dow" var="action" scope="page"/> </c:otherwise> </c:choose>
相关文章推荐
- JSTL 的 if else : 有 c:if 没有 else 的处理
- JSTL 的 if else : 有 c:if 没有 else 的处理
- JSTL 的 if else : 有 c:if 没有 else 的处理
- JSTL 的 if else : 有 c:if 没有 else 的处理
- JSTL 的 if else : 有 c:if 没有 else 的处理
- JSTL 的 if else : 有 c:if 没有 else 的处理
- JSTL 的 if else : 有 c:if 没有 else 的处理
- JSTL 的<c:if>标签没有else的解决办法
- jstl 的<c:if>标签没有else的解决办法
- JSTL中解决c:if没有else
- 【JSTL】<c:if test=“”>没有else的解决方法
- jstl 的<c:if>标签没有else的解决办法
- JSTL判断list的size()大小,以及choose(相当于if else作用)
- C标签中jstl的if else
- 关于<:if>没有<c:else>解决方案
- 如何优雅的处理 Promise 的 if-else 分支
- 没有匹配 if 的非法 else 问题解决办法
- 5.Python - if、if else 、if else
- <c:if>没有<c:else>解决方案
- 跟我一起学Windows Workflow Foundation(3)-----使用If/Else活动,定制活动处理工作流,使用事件传递数据