Struts2中使用OGNL标签_s:if and 运算
一、控制標籤<br/><hr size="3" color="red">
#、if /elseif/ else @用於邏輯判斷<br/>
<s:set name="bir" value="-12"></s:set>
<s:if test="#bir>=180 || #bir<0">
你是何方妖怪?
</s:if>
<s:elseif test="#bir<=18 && #bir>=0">
未成年人不能進入!
</s:elseif>
<s:elseif test="#bir<=60 && #bir>=18">
您已經成年!
</s:elseif>
<s:else>
您已經老了!
</s:else>
http://tc.chinawin.net/it/softwaredev/article-1ced3.html