JSP表达式与JSTL.ppt

JSTL Core标签语法 c:if 进行条件判断,如果它的test表达式为true,那么计算它的body 语法 吉林林业信息科技有限责任公司 c:if test=“test exp” [var=“varName”] [scope=“{page|request|session|appliction}”] body content /c:if 名称 类型 描述 test boolean 条件判断的布尔表达式 var boolean 定义存储布尔表达式计算结果的变量 scope String 变量存储的范围 JSTL Core标签用法 示例 Core if example 吉林林业信息科技有限责任公司 JSTL Core标签语法 c:choose 用于情况选择,类似switch case 语法 吉林林业信息科技有限责任公司 c:choose c:when test=“test exp” when body /c:when c:when test=“test exp” when body /c:when c:otherwise other body /c:otherwise /c:choose JSTL Core标签语法 c:forEach 迭代标签,可以迭代数组、Coll

文档评论(0)

1亿VIP精品文档

相关文档