• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help jsp+displaytag  RSS feed

 
Hari Venkat
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am using displaytag to view my data and here am using export="true" in display:table.. Am using group="1" in display:column...
When i view the output am getting total and subtotal correctly.. but when i view this with excel or pdt am not getting total column.. Can anyone help me out where i have gone wrong.. Thanks in advance...
Here is my code:
<display:table name="sessionScope.results.rows" class="reportviewer" export="true" id="row" defaultsort="1" defaultorder="ascending"
pagesize="40" cellspacing="0" decorator="org.displaytag.decorator.TotalTableDecorator" >
<display:setProperty name="paging.banner.placement" value="top" />
<c:forEach var="obj" items="${col}">
<c:choose>
<c:when test='${obj== "Date"}'>
<display:column property="${obj}" sortable="true" group="1"/>
</c:when>
<c:when test='${obj== "CTR"}'>
<display:column property="${obj}" sortable="true" total="true"/>
</c:when>
<c:when test='${obj== "Impressions"}'>
<display:column property="${obj}" sortable="true" total="true"/>
</c:when>
<c:when test='${obj== "Clicks"}'>
<display:column property="${obj}" sortable="true" total="true"/>
</c:when>
<ctherwise>
<display:column property="${obj}" sortable="true"/>

</ctherwise>
</c:choose>
</c:forEach>
</display:table>
[ July 25, 2006: Message edited by: Hari Venkat ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!