tag
Syntax format
property
| property | Description | Whether it is required | Default value |
|---|---|---|---|
| select | The XPath expression to evaluate, usually using an XPath variable | Is | None |
| escapeXml | Whether to ignore XML special characters | No | true |
Example Demonstration
The following example uses the
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
JSTL x:out 标签
Books Info:
Padam History
ZARA
100
Great Mistry
NUHA
2000
The title of the first book is:
The price of the second book:
The running result is as follows:
BOOKS INFO:
The title of the first book is: Padam History
The price of the second book: 2000
JSP Standard Tag Library