I'm using displaytag tld for displaying tables and exporting. The problem is, in my first column, the column content is hyperlink, and all of this html tag is generated on exporting.

<a class="ajax"
id="msgIDPkView"
href="displaySelect
DashboardDetailsV
iewFullText.do?ref=
501250">501250</
a>

How can I make it only show the value(between ).

有帮助吗?

解决方案

if you only decorator for this column use this:

<display:setProperty name="export.decorated" value="false"/>

with this property the decorator doesn't apply to your column while printing!

otherwise you've to create two columns for this property; one to show in web browser and one to show in export!

<display:column property="id" media="html">
<display:column property="id" media="csv">
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top