---
title: "struts2标签判断集合是否为空"
author: "chenghuixy"
date: "2012-01-13T14:46:05Z"
tags: []
categories: ["Web前端"]
slug: "struts2"
draft: false
lastmod: "2012-01-13T14:46:05Z"
id: 1344751
url: "https://liar.iteye.com/blog/1344751"
---

```
<s:if test="cyhDocuments==null || cyhDocuments.isEmpty()">
    为空
</s:if>
<s:else>	
    不为空
</s:else>
```