<c:choose>
<c:when test="${param.action=='changeLanguage'}"><jsp:forward page="install/install_change_language.jsp"/></c:when>
<c:when test="${param.action=='license'}"><jsp:forward page="install/install.jsp"/></c:when>
<c:when test="${param.action=='check'}"><jsp:forward page="install/install_check.jsp"/></c:when>
<c:when test="${param.action=='config'}"><jsp:forward page="install/install_config.jsp"/></c:when>
<c:when test="${param.action=='admin'}"><jsp:forward page="install/install_admin.jsp"/></c:when>
<c:when test="${param.action=='install'}"><jsp:forward page="install/install_install.jsp"/></c:when>
<c:when test="${param.action=='showMessage'}"><jsp:forward page="install/install_message.jsp"/></c:when>
<c:otherwise><jsp:forward page="install/install_language.jsp"/></c:otherwise>
</c:choose>
当test为true时,则执行<c:when ></c:when>之间的代码,
如果所有的test都为false,则执行<c:otherwise></c:otherwise>之间的代码。
分享到:
相关推荐
◎ JSTL的基本概念、安装与配置 ◎ JSTL的通用标记:<c:out>、<c:set>、<c:remove>和<c:catch>标记...◎ 条件处理标记:<c:if>、<c:choose>、<c:when>和<c:otherwise>标记 ◎ 循环标记:<c:forEach>和<c:forTokens>标记
用于复杂判断的 <c:choose>?、 <c:when>?、 <c:otherwise>?标签? 用于循环的 <c:forEach>?标签 用于分隔字符的 <c:forTokens>?标签? 用于包含页面的 <c:import> 用于得到 URL?地址的 <c:url>?标签? 用于页面...
<c:when test="${empty valuelist}"><br> valuelist为空<br> </c:when><br> <c:otherwise><br> valuelist不为空<br> </c:otherwise><br> </c:choose><br> <p><br> <li>循环控制标签:c:foreach</li><br><br> <table ...
:<pg:pager url="oa/module!getModules" items="${total}" maxPageItems="10" export="currentPageNumber=pageNumber"> <pg:param name="pid"/> <pg:first> <a href="${pageUrl}">首页</a> </pg:first> <pg:...
EL表达式 (详解) EL表达式 1、EL简介 1)语法结构 ${expression} 2)[]与.... EL 提供.... 当要存取的属性名称中包含一些特殊...=或ne、<或lt、>或gt、<=或le、>=或ge 3.逻辑运算符有三个:&&或and、||或or、!或not ...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>标签 16.4.6、<html:hidden...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>标签 16.4.6、<html:hidden...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<...
16.3.5、重定向标签:<logic:redirect> 16.4、Html标签 16.4.1、<html:form>标签 16.4.2、<html:text>与<html:password>标签 16.4.3、<html:radio>标签 16.4.5、<html:textarea>...
1.关键字:JSTL标签、<c:choose>、<c:forEach>、<c:forTokens>、<c:if>、<c:import>、<c:otherwise>、<c:out>、<c:param>、<c:redirect>、<c:remove>、<c:url>、<c:when>、<c:set>、<c:catch>
JSTL标签总结-<c:if>,<c:choose>,<c:forEach>,<c:forTokens>,<c:catch>,<c:remove >,<c:set>,<c:import>,<c:redirect>,<c:url>,<fmt>
jstl标签可以代替<%= %>在jsp文件中书写java代码,jstl标签包括<c:forEach><c:forEach>、<c:if></c:if>以及<c:choose></c:choose>等的使用,可以使java代码在jsp页面中更加规整。 使用jstl标签需要两个jar包
功能介绍:<br/> 为网页编程人员提供能够自动生成验证码图像并验证网页访问者输入的Web控件,具体功能如下:<br/>1. 提供简单易用的设计时所见即所得的可视化设置方式,并且支持设计时验证码图像效果与特效属性设置...
2.流程控制标签:if、choose、when、otherwise 3.循环标签:forEach、forTokens 4.URL操作标签:import、url、redirect 使用标签时,一定要在jsp文件头加入以下代码: <%@taglib prefix="c" uri=...
2.为了方便RAD开发,我们把FCKeditor控件也添加到VS的工具箱(Toolbox)上来,展开工具箱的常用标签组(General),右键选择组件(Choose Items…),在对话框上直接找到浏览按钮,定位FredCK.FCKeditorV2.dll,然后...
04_Java标签库 使用来: 演示如何使用普通 Java JSP Scriptlet <% ... %> & JSP 表达式<%... 测试条件( if和choose )、迭代( forEach和forTokens )和<c>标签 使用测试<c>标签