velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryce Nesbitt <>
Subject How to output a tab from a velocity template?
Date Thu, 15 Dec 2005 00:38:09 GMT
I'm using a velocity/xwork/WebWork template to write a text file, which
needs to have tabs between each record:

$res.setHeader("content-type", "text/plain")#*
*#$res.setHeader("Content-Disposition", "attachment; filename=xxxxx.tsv")
#foreach( $step in $result )

How can I get tabs or other special characters out of Velocity? \t does
not work.  &tab; and &#09; won't work, because the target is not a HTML

Putting actual tabs in the text file might work, but that's icky.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message