displaytag 字段只展示在excel中

<display:column title="预约时间和原因" property="reservationRemark"   media="csv">
</display:column>


media 属性的解释
Use this attribute to keep a column from being output during an export. The
column will only render for the named media type(s) - it won't be added to the
table if the current request media is not supported. Can be any space separated
combination of 'html', 'csv', 'xml', 'all', or 'excel'. Defaults to 'all'. See the export
page in the example webapp for more details.

猜你喜欢

转载自huangzhir.iteye.com/blog/1878959