continue processing templates after resource not found?

2009-08-28 Thread ChadDavis
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

Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pradnya Gawade
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

RE: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Todd.McClintock
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

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pradnya Gawade
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

RE: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Todd.McClintock
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

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pradnya Gawade
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.

Re: continue processing templates after resource not found?

2009-08-28 Thread ChadDavis
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

Re: continue processing templates after resource not found?

2009-08-28 Thread ChadDavis
> 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

Re: continue processing templates after resource not found?

2009-08-28 Thread Nathan Bubna
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