struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardik Shah <hardik_...@yahoo.com>
Subject hw to use if tag
Date Tue, 07 Oct 2008 11:49:16 GMT

hi

i have vector of vector and i can easily iterate using  <s:iterate> in
between <s:iterate>

but the problem is that some of the element in vector of vector is null

like
------------------------------------
<s:iterator value="attributelist" id="attriblist">
        <tr>
        	 <td><s:property value="attrName"/></td>
            <td><s:property value="attrValue"/></td>
            <td><s:property value="attrType"/></td>
            <td><s:property value="attrForIndiName"/></td>
            <td><s:property value="userTypeName"/></td>
            <td><s:property value="userInput"/></td>
            <td><s:property value="remark"/></td>
            <td>
            <%int srno=1; %>
  			
  			
            <s:iterator value="attrMatrixValue">
            
            <%=srno++ %>
            <s:if test="attrMatrixValue ==null"></s:if>
            <s:else>
            <s:property />
            <br>
            </s:else>
            
            
            </s:iterator>
            <%srno=1; %>
          	
-----------------
how i can put condition for that i am not good in ognl

please help me

-- 
View this message in context: http://www.nabble.com/hw-to-use-if-tag-tp19856372p19856372.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message