Discussion:
[FreeMarker-user] Template output as string after processing
code dude
2008-03-07 16:14:10 UTC
Permalink
Hi List ,
I have writen a small program where i want output of template processing as
string not as OutputStreamWriter !! can some one suggest me who to do so ?

Writer out = new OutputStreamWriter(System.out);
template.process(data, out);


return temp.toString()
Daniel Dekany
2008-03-07 16:58:03 UTC
Permalink
Post by code dude
Hi List ,
I have writen a small program where i want output of template
processing as string not as OutputStreamWriter !! can some one suggest me who to do so ?
Writer out = new OutputStreamWriter(System.out);
template.process(data, out);
return temp.toString()
It's simple:

Writer out = new StringWriter();
template.process(data, out);
return out.toString()
--
Best regards,
Daniel Dekany
vasanth
2012-10-22 10:28:06 UTC
Permalink
Thank you daniel .. its working ..



--
View this message in context: http://freemarker.624813.n4.nabble.com/Template-output-as-string-after-processing-tp625870p4654376.html
Sent from the freemarker-user mailing list archive at Nabble.com.
Loading...