Use the <media=”csv”> tag on each column you don’t want to show, but want to download.

 

See here: http://displaytag.homeip.net/displaytag-examples-1.1/example-export.jsp

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chetan Pandey
Sent: Thursday, October 26, 2006 11:29 PM
To: displaytag-user@lists.sourceforge.net
Subject: [displaytag-user] How to hide a Column for display but make sure itgets downloaded

 

Hi All:

 

I have a displaytag as follows:

 

<display:table name="activeCoursesVector" id="row" export="true"  style="text-align: center" class="dis"  pagesize="50" requestURI="/prepopulateCollectionsforCourse.do">

<display:setProperty name="export.csv.filename" value="courses.csv" />

 

<display:column titleKey="course.name"> <c:out value="${row[0]}"/></display:column>

<display:column titleKey="course.content.owner"> <c:out value="${row[1]}"/></display:column>

<display:column titleKey="course.audience"> <c:out value="${row[2]}"/></display:column>

.

.

.

.

..

.

.</display:table>

 

 

 

I want only some rows to show in the JSP Page but want more than that to come when downloading as CSV.

 

Can you pls tell me the attribute which will make this possible. Implies hide from JSP but show in CSV

 

Thanks.

 

Chetan Pandey

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to