I'm not aware of sample code, but i can share these thoughts:

Using VelocityStruts tools in generating emails has been discussed on
the lists before (can't recall if it was dev or user list), so you
should search the list archives for past discussion on it.

To access the MessageTool, it is more important to get the Context
created by the VelocityViewServlet's createContext(...) method than it
is to get the VelocityEngine from getVelocityEngine(), though both is
best.

On 2/18/06, David Sperling <[EMAIL PROTECTED]> wrote:
> Hi-
>
> I'm looking for a way to send email (based on a Velocity template) from
> a webapp
> with access to the Velocity-Struts MessageTool?
>
> The faq suggests the following:
>
>    You can get the VelocityEngine instance for other uses of velocity by
> calling
>     getVelocityEngine from a subclass.
>
>
> Can anyone point me to some sample code that works with
> Velocity-Struts-1.2 and
> Velocity-1.4 or newer?
>
>
> Cheers,
>
> David
>
> ---------------------------------------------------------------------
> 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