How to output tab character in <c:out
843840Feb 12 2008 — edited Feb 19 2008Here is the problem, and I would appreciate your help. I am trying to output text data to Excel. The data must be tab-delimeted.
This works:
<%response.setContentType("application/vnd.ms-excel");
String sCsv = "aaa\tbbb\tccc\txxx<br>";
out.print(sCsv);%>
But when I try to use <c:out, it fails:
<c:out value="aaa\\tbbb2c	cc3x\txxg\\\taaaa"/>
As you see, I am trying to get tabulation in different ways, but all of them fail. Excel always reads the text in one column. Is there anyway I can insert tab-symbol and use it with <c:out?
Thank you