---
title: "JSTL C标签 <c:if>判断参数是否为空"
author: "110shen110"
date: "2017-06-15T00:08:23Z"
tags: []
categories: ["Web前端"]
slug: "jstl-c-c-if"
draft: false
lastmod: "2017-06-15T00:08:23Z"
id: 2379477
url: "https://110shen110.iteye.com/blog/2379477"
---

c:if test="${empty str}"&gt;  str为空&lt;/c:if&gt;

 

&lt;c:if test="${not empty str}"&gt;  str不为空&lt;/c:if&gt;