Well, <s:iterator...> only iterates over a single
array--it has no idea about any other arrays you're
dealing with.
If your action has, say, three arrays of equal
length...
public String[] getArr1() {...
public String[] getArr2() {...
public String[] getArr3() {...
... then...
<s:iterator value="arr1" status="stat" id="arr1Val">
<s:property value="#arr1Val"/>
<s:property value="arr2[#stat.index]"/>
<s:property value="arr3[#stat.index]"/>
</s:iterator>
... will iterate over a single array and use the
current iteration index to retrieve values from the
other arrays.
d.
--- "Filippov, Andrey" <[EMAIL PROTECTED]>
wrote:
> Hi everybody!
>
>
>
> I have the following question - I have several
> String[] objects of the
> same size. I have to render them on the jsp. First I
> thought that this
> way is correct:
>
>
>
>
>
> <s:iterator status="stat" value="secondName">
>
> <tr>
>
> <td>
>
> <s:property
> value="#stat.index" />
>
> </td>
>
> <td>
>
> <s:property/>,
> <s:property
> value="firstName"/>
>
> </td>
>
> <td>
>
> <s:property
> value="position"/>
>
> </td>
>
> <td>
>
> <s:property
> value="project"/>
>
> </td>
>
> <td>
>
> <s:property
> value="room"/>
>
> </td>
>
>
>
> </tr>
>
> </s:iterator>
>
>
>
> But it's wrong. Are there any opportunities to do
> it?
>
>
>
> Appreciate.
>
>
>
> Best regards.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]