JSP JSTL < C: out > tag: output tag
•
Java
grammar
Syntax format 1:
Syntax format 2:
defalultValue
Example
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
escapeXml属性值为false时:<c:out value="<hr>" escapeXml="false"/>
escapeXml属性值为true时:<c:out value="<hr>"/>
第一种语法格式:<c:out value="${name}" default="name的值为空"/>
<br>
第二种语法格式:<c:out value="${name}">
name的值为空
</c:out>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码
