Export csv using displaytag gives html tags in output file

We are trying to export data from jsp to a csv file using the displaytag library. But when we open, we get all the html-related tags in the csv file. We made the following changes to our application for this. - imported displaytag libraries (displaytag and displaytag-export-poi version 1.1) - changes were made to jsp tags to use displaytags (simple displaytable and displaycolumn tags) - modified web.xml to use ResponseOverrrideFilter and put it on top of other filters - created a displaytag file .properties for defining csv related properties

We have checked most of the examples on the network for this export with csv functionality and are still not able to solve this problem. When the file is uploaded, it simply displays all the html-related tags (which I believe the displaytag library uses).

Please help us solve this problem. Has anyone encountered such a problem before?

Thanks.

+4
source share

Source: https://habr.com/ru/post/1481749/


All Articles