<c:if>有三个属性
test:用于设置逻辑表达式
var: 用于指定逻辑表达式中变量的名字
scope:用于指定var变量的作用范围,默认值为page
scope: page request session application 四个作用范围
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title></title>
</head>
<body>
<c:set value="1" var="visitCount" property="visitCount" />
<c:if test="${visitCount==1}">
This is your first. Welcome to the site!
</c:if>
</body>
</html>
通过test属性判断${visitCount==1}是true 或者false
如果是true 执行 This is your first. Welcome to the site
<c:set> 设置了visitCount=1