标签:仓库 Fix image stl dep enc mave div 新版
1、在pom中引入依赖
在maven 仓库中可以查看最新版
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
2、在jsp中插入
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

3、使用
利用c:if判断,如果message为空,就不显示;$(message!=null)

如果简单可以使用这种方式来替代jstl
<div class="callout callout-danger" ${message==null?"style=‘display: none‘":""}>
<h4>${message}</h4>
</div>
标签:仓库 Fix image stl dep enc mave div 新版
原文地址:https://www.cnblogs.com/yanxiaoge/p/10825108.html