---
title: "s:if标签获取action中对象属性"
author: "hunray"
date: "2011-11-11T16:17:36Z"
tags: []
categories: ["Web前端"]
slug: "s-if-action"
draft: false
lastmod: "2011-12-30T16:57:02Z"
id: 1254449
url: "https://hunray.iteye.com/blog/1254449"
---

<s:if test="%{bizExtendPOJO.bizId !=0}">   
 <s:property value="bizExtendPOJO.bizId"></s:property>
</s:if>

判断list为空
<s:if test="imageList.size==0"></s:if>

判断字符串
<s:if test='%{image=="测试"}'></s:if>

<s:if test="%{#type.adTypeId.equals(adType)}">
    <s:property value="#type.typeName"/>
</s:if>