tag
If the value of the XPath expression is of type boolean, the
Syntax format
property
| property | Description | Whether it is required | Default value |
|---|---|---|---|
| var | The variable representing the value of the XPath expression | Is | Body |
| select | The XPath expression to evaluate | No | None |
| scope | The scope of the var attribute | No | Page |
Example Demonstration
The following example shows us how to use the
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
JSTL x:set 标签
Books Info:
Padam History
ZARA
100
Great Mistry
NUHA
2000
The price of the second book:
The running result is as follows:
BOOKS INFO:
The price of the second book:[[book: null], [book: null]]
JSP Standard Tag Library