Mike,
THX,
Your "easiest" suggestion works. I'll look at the other possibility later..
John Mahan

----- Original Message ----- 
From: "Mike Kienenberger" <[EMAIL PROTECTED]>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Cc: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Saturday, January 22, 2005 4:48 AM
Subject: Re: Email VM DateTool Usage Problem


> John Mahan <[EMAIL PROTECTED]> wrote:
> > I would appreciate some insight into how one tells the Velociy instance
to
> > import java.util.date and/or the DateTool.
> >
> > I'm using the following Velocity code that works OK in  my main instance
> but
> > will not render in the Email instance:
> >
> > $date.format('E, d MMMM yyyy',$!FormatItem.newDate)
>
> The easiest way is to use:
>
> context.put("date", new DateTool());
>
>
>
> Another way is to use Edgar Poce's standalone toolbox loader posted to the
> velocity-dev list (search or browse the velocity mail archives) or write
> your own toolbox loader:
>
> Date: Fri, 10 Dec 2004 18:13:07 -0300
> From: Edgar Poce <[EMAIL PROTECTED]>
> Subject: Re: standalone toolbox loader
> To: Velocity Developers List <velocity-dev@jakarta.apache.org>
> Reply-to: Velocity Developers List <velocity-dev@jakarta.apache.org>
> Message-id: <[EMAIL PROTECTED]>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to