データをエクスポートするためにdisplaytagタグライブラリを使用していますが、私のデータは次のようになっています:
<a href=../status?status_index="78190" /a>
ただし、実際のデータのみがエクスポートされるように、エクスポート中に HTML マークアップを削除したいと考えています。
たとえば、次のような URL ではなく、唯一のデータが必要です。
78190
コード:
<display:table name="bulkDetails" export="true" pagesize="100" id="row" sort="list">
<display:column title="REQUESTID" sortable="true">
<c:url value="../Status" var="url">
<c:param name="Status_Index" value="${row.REQUESTID}"/>
</c:url>
<a href=${url}>${row.REQUESTID}</a>
</display:column>
私displaytag.properties looks
のような:
basic.empty.showtable=true
export.excel=true
export.csv=true
export.xml=false
export.pdf=false
export.excel.class=org.displaytag.export.ExcelView
#export.excel.class=org.displaytag.export.CsvView
# if set, file is downloaded instead of opened in the browser window
export.excel.filename=report.xls
export.csv.include_header=true
export.csv.filename=report.csv