tag
Syntax format
...
property
| property | Description | Whether it is required | Default value |
|---|---|---|---|
| test | Conditional | Is | None |
| var | The variable used to store the result of the condition | No | None |
| scope | The scope of the var attribute | No | page |
Demo Example
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
c:if 标签实例
我的工资为:
The running result is as follows:
我的工资为: 4000
JSP Standard Tag Library