Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

tag

tag

JSP Standard Label LibraryJSP Standard Tag Library

The tag displays the result of an XPath expression, similar to the<%= %> action.

Syntax format



property

The tag has the following attributes:

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 theandtags:



<%@ 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 Label LibraryJSP Standard Tag Library