struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dynamicd <>
Subject Struts2 DisplayTag dynamic table
Date Fri, 26 Sep 2008 01:23:00 GMT

Heres how I got the dynamic tables working with Display Tag and Struts2
I pass in the list of columnNames and chartDATA from the controller
and heres my jsp

DisplayTag 1.1.1
ajaxtags 1.3 rc7

<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="" prefix="display" %>
<%@ taglib uri="" prefix="ajax" %>

<div class="table">

<form id="reportdataform" method="POST">

<ajax:displayTag id="chartDATA" ajaxFlag="chartDATA">
<display:table name="chartDATA" uid="chartRow" id="chartRow" pagesize="25"
excludedParams="*" export="true" class="table"
<s:iterator value="columnNames" id="column" status="stat2">
<display:column title="${column}"><s:property
value="#attr.chartDATA[#attr.chartRow_rowNum -1][#stat2.count-1]" />


Hopefully it will help someone.. 
View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message