If a template contains a parse directive that results in a resource
not found, the whole thing blows up. Is there a configuration setting
that would allow the processing to continue, perhaps just writing a
message in line. I see that the #include directive can insert a
message into the stream and
Hi,
I am planning to use multipart email messages so that both HTML
supporting and HTML not supporting clients will be able to read the
message properly. My question is can it be implemented with Velocity
Engine or I will have to necessarily go for template library such as
FreeMarker? I already ha
Pradnya,
I implemented a multipart mime email in Java using velocity templates. I used
one template for the HTML version and another template for the text version.
Both templates used the same variable names for substitution. The beauty of
doing this with Velocity was that I could open the H
Thank you Todd for replying. Thanks for additional info about testing
the plain mail messages. Even I am not sure if I will get client to
test the plain test messages or not.
After goggling for multipart email messages, I got following link
showing sample of Sending FreeMarker-based multipart emai
Pradnya,
Yes, the implementation would be the same except that you would be using
Velocity instead of FreeMarker to transform the template into the email body.
I am not familiar with FreeMarker so I can't comment it.
Regards
Todd McClintock
-Original Message-
From: Pradnya Gawade [mai
all right. Thanks Todd. I will try to implement multipart messages
with Velocity Engine.
On Fri, Aug 28, 2009 at 2:43 PM, wrote:
> Pradnya,
>
> Yes, the implementation would be the same except that you would be using
> Velocity instead of FreeMarker to transform the template into the email body.
Okay. I can answer my first question and pose another.
> If a template contains a parse directive that results in a resource
> not found, the whole thing blows up. Is there a configuration setting
> that would allow the processing to continue, perhaps just writing a
> message in line. I see tha
> I'm now using the org.apache.velocity.app.event.implement.IncludeNotFound
> event handler. This works great. But . . .
>
> I now would like to be able to have access to the name of the missing
> resource so i can inline it into the notfound.vm template that takes
> over when the resource is not
On Fri, Aug 28, 2009 at 2:46 PM, ChadDavis wrote:
>> I'm now using the org.apache.velocity.app.event.implement.IncludeNotFound
>> event handler. This works great. But . . .
>>
>> I now would like to be able to have access to the name of the missing
>> resource so i can inline it into the notfound