Is your vector just a vector of value or is it an object vector with
attribute fields? With attribute fields you should use the if tag as
described before. In the other case, you have to use the var field of
<s:iterator> that would create a variable to manipulate the value.
regards
Hardik Shah a écrit :
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]