Hi,
In Your mail sent 27 listopada 2001 You wrote:
AS> 1. Is there a table tag library with struts.
Yes. Look at the <logic:iterate> tag.
AS> 2. I want to let the user sort the table also, based on each column.
AS> The question is that do I have to write a separate action class for each
AS> sort?
AS> is there a simpler way of giving the user the ability to sort the table
AS> based
AS> on each column of the table.
I see You keep the data in some kind of collection:
>Collection col = (Collection) session.getAttribute("list");
But You didn't say where do You get this data from. If it's stored in
some java class or array You can sort that in an action class and than
redisplay the page again iterating sorted data. In case You get the
data from a database, I think the best way would be to sort it using
SQL "order by" in Your query.
--
Best regards,
Maciej
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>