2019-04-24jstl

[mevan]https://mvnrepository.com/
JavaServer Pages Standard Tag Library (1.1 ) ,它的中文名称为 JSP 标准标签函数库。JSTL 是一个标准的已制定好的标签库,可以应用于各种领域,如:基本输入输出、流程控制、循环、XML 文件剖析、数据库查询及国际化和文字格式标准化的应用等。从表 7-1 可以知道,JSTL 所提供的标 签函数库主要分为五大类:
(1)核心标签库 (Core tag library)
(2)I18N 格式标签库 (I18N-capable formatting tag library)
(3)SQL 标签库 (SQL tag library)
(4)XML 标签库 (XML tag library)
(5)函数标签库 (Functions tag library) 表 。
导入架包

jstl-1.2.jar
standard-1.1.2.jar

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

if 条件test="${age > 18}"

 

成年

    
未成年

foreach遍历 items要便利的数组 str新定义的

    
          ${ str}
    
    
${user.username},${user.password}

${mapStr.key},${mapStr.value}

${uM.key},${ uM.value.username}

${uM.key},${ uM.value.username}

你可能感兴趣的:(2019-04-24jstl)