Title: RE: more nits to pick

Thanks, it is working but I have an other question.


Let's say:
User A merges a template at time T
User B merges an other template at time T

If there is an error, how can I say where it comes from (User A or B or both) ?

It would be nice to have more information in the ParseErrorException such as the message logged.


-----Original Message-----
From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 4:30 PM
To: [EMAIL PROTECTED]
Subject: Re: more nits to pick


> "Freyss, Joel" wrote:
>
> In my application, I would like to display the page as it is rendered
> with template.merge(), but also display error messages in a popup
> window.
>
> A suggestion would be to set up a specific Writer for this task that
> can be either the log or the servlet output. We need a process to get
> the detailed error from the application.

(Stop the HTML email...)

That's *real* easy - take a look at

org.apache.velocity.test.ExternalLoggerTest

That will show you how to make a class into a logger suitable for
velocity, and how to give it to velocity to use.

geir

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

Reply via email to