tag
Syntax format
property
| property | Description | Whether it is required | Default value |
|---|---|---|---|
| name | The name of the XSLT parameter | Is | Body |
| value | The value of the XSLT parameter | No | None |
Example Demonstration
The code of the style.xsl file is as follows, using the xsl:param... tag and the {$bgColor} variable:
The code of the mian.jsp file is as follows, using the x:param tag inside the x:transform tag:
<%@ 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:param 标签
Books Info:
Padam History
ZARA
100
Great Mistry
NUHA
2000
The running result is as follows:

JSP Standard Tag Library