Tags usage in Struts 2
        Posted  
        
            by Panther24
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Panther24
        
        
        
        Published on 2010-05-18T10:44:38Z
        Indexed on 
            2010/05/18
            13:40 UTC
        
        
        Read the original article
        Hit count: 418
        
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?
© Stack Overflow or respective owner