Pregunta

Some one has had the same problem before here in SO, but unfortunately no answer for that.

csv export using displaytag gives html tags in the output file

Am having the same problem here.

I have a table. I use display tag for exporting it in to Excel. It works fine.

Column 1 | Column 2 | Column 3 | Group |

A1 | B1 | C1 | G1
A2 | B2 | C2 | G2
A3 | B3 | C3 | G1
A4 | B4 | C4 | G2

Now, I have a feature called , group by , where it groups by a specific columns. The tables would change as

Column 1 | Column 2 | Column 3 | Group |

G1
A1 | B1 | C1 | G1
A3 | B3 | C3 | G1
G2
A2 | B2 | C2 | G2
A4 | B4 | C4 | G2

If I try to export this, am getting HTML tags tr and td inside the output excel file. Is it a bug?? or am I missing anything!!

¿Fue útil?

Solución

This is a bug in TableDecorator. Unfortunately, even the demo page does not have a case like this!!!

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top