Laurie,
I have done it. Thank you very much. I would like to appreciate your
efforts done for me.
I would like to work with you to solve problems. If possible then we would
meet u through net.
Vijay
On 5/25/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
Perhaps something like the following, making use of the status info [1]
exposed by s:iterator:
<table><tr>
<s:iterator id="item" value="yourList" status="s">
<td><s:property value="#item.someProperty"/></td>
<s:if test="#s.index % 3 == 0">
</tr><tr>
</s:if>
</s:iterator>
</tr></table>
L.
[1]
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html
Vijay Prajapati wrote:
> Dave,
>
> Can you please send sample code to print matrix of 10 element from one
> list through iterator tag in Struts 2.0.6?
> I am here giving sample output..
>
> 1 2 3 ----------- in 1st row of HTML table
> 4 5 6 ----------- in 2nd row of same HTML table
> 7 8 9 ----------- in 3rd row of same HTML table
> 10 ----------- in 4th row of same HTML table
>
>
> Thank you,
> Vijay
>
> On 5/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>>
>> --- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
>> > Is there Nested Iterator tag in Struts 2.0.6?
>>
>> I don't believe that one is necessary; you should be
>> able to arbitrarily nest <s:iterate.../> tags (I have
>> several cases where I do that with no issues).
>>
>> One thing to note is that if you need to access an
>> outer-iterator value you'd need to declare an id
>> attribute in the outer iterator and refer to it using
>> the "#" OGNL syntax within the inner iterator.
>>
>> Er... that made sense in my head :/
>>
>> d.
>>
>>
>>
>>
>>
____________________________________________________________________________________Get
>>
>> the free Yahoo! toolbar and rest assured with the added security of
>> spyware
>> protection.
>> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
>>
>> ---------------------------------------------------------------------
>> 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]