Hi Struts2 users,

I am new to Struts2

Have a problem with s:if tag, below is the code snippet
'branchsData' is a javaobject having 'branch' as its property

Trying to generate table structure based on condition, i am afraid s:if
conditional tag is not working for me.  Let me know what is the problem with
this code and what best way to achieve this

Any help will be greatly appreciated

Thanks in advance

----------------------------- START -------------------------------------
<s:iterator value="branchsData" status="stat">
   <s:if test="%{#branchsData[%{#stat.index}].branch =='START'}">
        <table><tr>
    </s:if>
    <s:elseif test="%{#branchsData[%{#stat.index}].branch =='END'}">
        </table></tr>
    </s:elseif>
    <s:else>                                                                    
        <td><s:textfield name="%{#branchsData[%{#stat.index}].branch"
value=""></s:textfield></td>
   </s:else>
</s:iterator>
------------------------------- END ----------------------------------
-- 
View this message in context: 
http://www.nabble.com/conditional-matching-using-s%3Aif-tf4797396.html#a13724644
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to