Tags usage in Struts 2
- by Panther24
Hi,
I have the following code snippet
<s:iterator status="stat" value="masterAccountList">
<tr>
<td><s:property value="name"/></td>
<td><s:property value="status"/></td>
<s:set name="DrStat" id="DrStat" value="<s:property value='status'/>"/>
<td><s:if test='DrStat.contains("Out")'>
Dr. Is Available
</s:if>
<s:else>
Dr. Is not Available
</s:else>
</td>
</tr>
</s:iterator>
I need to check the status if it contains a keyword and display text accordingly. When I try this, I always get 'Not Available' status.
I'm not even sure what the set returns, how can I see that?