Hello All,

I have 2 questions regarding the display of a html table when using struts.

1. Is there a table tag library with struts. currently I am rendering the
table my means of a scriptlet.
something like

<%
        Collection col = (Collection) session.getAttribute("list");
        for(Interator i = col.iterator(); i.hasNext();) {
                %>
                        <tr>
                                <td> </td>
                        </tr>
                <%

        }
%>

Is this the correct way of rendering a table with struts (I wish not to use
scriptlets as far as possible.)

2. I want to let the user sort the table also, based on each column.
The question is that do I have to write a separate action class for each
sort?
is there a simpler way of giving the user the ability to sort the table
based
on each column of the table.

Thanks in advance for your help.

regards,
Abhishek.


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

Reply via email to