Im currently using the following to output to a servlet using StringTemplate:
(ST)page.render();
When I do this, StringTemplate prints warnings to Stderr; filling up log files with useless warnings is not ideal.
If I understand the documentation correctly, will the following fix this:
STWriter out = new MyCustomWriter(response.getWriter());
page.write((STWriter)out, (STErrorListener)myListener);
And on a side note, will doing this save having to build an entire page of strings in memory?