<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
$Title$
$END$
<%
request.setAttribute("num", 10);
%>
hello jstl
------------------------------------------------------------------------
数值大于0
------------------
${flag}--${requestScope.flag}---${sessionScope.flag}
--------------------------------
choose ---- when -- otherise
<%
request.setAttribute("scope" ,80);
%>
菜鸡
还行
可以
enenen
--------------------------------------------------------------------------
注解
If标签常用属性test条件,判断操作的是域对象,接收返回的结果是布尔类型的值,是一个必要属性
var 限域变量名存放在作用域中的变量名用来接收判断结果的值,是一个可选属性,
scope 限域变量名的范围配置 page, requset,session application也是一个可选属性
标签操作的一般都是域对象,if标签没有else标签的结果,需要设置两个完全相反的条件
Choice标签没有属性,when标签只有一个test的属性,并且是一个必须有的属性,otherwise标签没有属性
Choice标签和otherwise标签没有属性,而when标签必须有一个test的属性,choice标签中必须包含至少一个when标签,可以没有otherwise标签
Otherwise标签必须设置在最后一个when标签之后
Choice标签中只能设置when标签和otherwise标签
when标签和otherwise标签中可以嵌到其他的标签,otherwise标签会在所有的问标签都不执行的情况下执行
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.HashMap" %><%--
Created by IntelliJ IDEA.
User: ${陈平安}
Date: 2022/6/7
Time: 10:21
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Title
${i}
<%
ArrayList



