JSP JSTL < C: remove > tag: remove tag

Example

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  <c:set var="name" value="C语言中文网" scope="page"/>
  移除前输出的变量name为:<c:out value="${name}"></c:out>
  <c:remove var="name"/>
  <br>
  移除后输出的变量name为:<c:out value="${name}"default="变量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
分享
二维码
< <上一篇
下一篇>>