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

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>

Reply via email to