Good Afternoon Fea
I was asking the same question looking at Struts HTML Grid Tags
*and some customisation of the submit buttons to be incorporated into the
column headings*
when Dennis from Evergreen Investments suggested
http://displaytag.sourceforge.net/
And..if your are supporting jsp 1.1 (j2ee 1.2) you can use Expression
Language for your name properties
so in the case where you want to get the records from DB and pass result to
table tag
<sql:query var="results">
select * from table
</sql:query>
<display:table name="${results.rows}" />
-OR-
setting up the scenario using dynabeans
<%
Connection con = ...; // just open a connection
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * from table");
RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
stmt.close();
con.close();
//associate the results attribute with the resultSet obtained from
RowSetDynaClass Bean
request.setAttribute("results", resultSet);
%>
/*finally use the display:table to show the results from identified
attribute called "results"*/
<display:table name="requestScope.results.rows" />
*copied from tutorial located at*
http://displaytag.sourceforge.net/tut_sources.html
Is this what you are looking for ??
Martin-
----- Original Message -----
From: "fea jabi" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Friday, November 04, 2005 9:11 AM
Subject: sorting of table columns
can we sort table columns when clicked on the column header using struts?
I mean does struts provide any tag to do so?
is there an example on how this can be done?
Thanks.
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
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]