when i write <s:if test="%{attrMatrixValue != null}"> my all values are note printed
it means each record has attrMatrixValue vector but in it not each has value so i have to apply condition for the property of attrMatrixValue help me, and <s:iterator value="attrMatrixValue" var="iterator"> gives as it has no such thing like var(using struts 2.0.11.2) Sébastien Domergue wrote: > > Hi, > > in your test condition, struts doesn't understand that attrMatrixValue > is a property, you should write something like : > <s:if test="%{attrMatrixValue != null}"> > Using '%{' means that the expression have to be evaluated. > > Regards > > Sébastien > > Hardik Shah a écrit : >> 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 >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- View this message in context: http://www.nabble.com/hw-to-use-if-tag-tp19856372p19857035.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]