have you tried a call to writer.flush() , before System.out.println?
> -----Original Message----- > From: Elton Hughes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 1:30 PM > To: velocity-user@jakarta.apache.org > Subject: Odd Behavior > > > <snip /> > // create the output > Writer writer = new StringWriter(); > template.merge(context2, writer); > writer.flush() // ? > // write out > System.out.println(writer.toString()); > > } // end of main method > > } // End of class > ---------- > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]