当前位置: 代码迷 >> Web前端 >> Struts2 <s:if> 标签的施用
  详细解决方案

Struts2 <s:if> 标签的施用

热度:50   发布时间:2012-09-28 00:03:35.0
Struts2 <s:if> 标签的使用

标签用法如下: test中是用来,放表达式,不能嵌套EL表达 。

?

<s:if test=''></s:if>

?

<s:if test="errorMsg == null or errorMsg==''">
       //字符串为空.
</s:if>
<s:else>
      //字符串不为空.
</s:else>

?

  相关解决方案