I found one solution if someone has better please post the code : 
<body bgcolor="white">
        <%
        ArrayList list = new ArrayList(8);
        for(int i = 1; i <= 8; i++)
        {
            list.add(i);
        }
        pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE);
        %>
        
        <h3><bean:message key="welcome.heading"/></h3>
        <logic:notEmpty name="list">
            <table>
                <tr>
                    <td>
                        <table>
                            <logic:iterate id="num" name="list" length="4">
                                <tr>
                                    <td>
                                        <%= num %>
                                    </td>
                                </tr>
                            </logic:iterate>
                        </table>
                    </td>
                    <td>
                        <table>
                            <logic:iterate id="num" name="list" offset="4">
                                <tr>
                                    <td>
                                        <%= num %>
                                    </td>
                                </tr>
                            </logic:iterate>
                        </table>
                    </td>
                </tr>
            </table>
        </logic:notEmpty>
        
    </body>

Dolphin06 wrote:
> 
> Hello, i have a list of 8 String in session and i would like to have it
> display using logic iterate tag in this manner :
> <tr>
> <td>String1</td><td>String5</td>
> </tr>
> <tr>
> <td>String2</td><td>String6</td>
> </tr>
> <tr>
> <td>String3</td><td>String7</td>
> </tr>
> <tr>
> <td>String4</td><td>String8</td>
> <tr>
> Hope someone helps, thank you.
> 

-- 
View this message in context: 
http://www.nabble.com/problem-laying-out-element-of-ordered-list-using-logic-iterate-tf4620724.html#a13200788
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to