Jon Stevens wrote:
> 
> on 4/10/01 5:20 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
> >             Template template = Velocity.getTemplate(templateFile);
> >
> >             Writer writer = new BufferedWriter(new
> > OutputStreamWriter(System.out));
> >             template.merge( context , writer);
> >
> >             writer.flush();
> >             writer.close();
> 
> The close/flush() should be in a try/finally.
> 
> -jon
> 

Yes, it should :)

-- 
Geir Magnusson Jr.                               [EMAIL PROTECTED]
Developing for the web?  See http://jakarta.apache.org/velocity/

Reply via email to