You are not missing a blank space, but a right "quotation mark".
-----Original Message-----
From: Bernardo Juan Marcellin Leautaud [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 18, 2001 3:57 AM
To: '[EMAIL PROTECTED]'
Subject: Email functionality using Turbine/Velocity
Hi,
I want to thanks to all who have helped me with this project. I have
finally been able to send e-mails from my Turbine/Velocity application.
Something you may want to know is the reason why I was getting a
NullPointerException. In my screen component, I set the context as:
context.put("VelocityEmail",new VelocityEmail());
instead of:
context.put("VelocityEmail, new VelocityEmail());
I was missing a blank space after the comma. If the blank space is
omitted, the class will compile successfully but it will throw a
NullPointerException at runtime. I think a compile error should be shown
in this case.
Additionally, I am completing the functionality of the project, entering
the To, From, and Subject in the .vm and reading them through the setTo,
setFrom and setSubject methods. This has worked fine. But I am having
problems with the body of the e-mail. I defined a Textarea in the .vm in
order to allow the user to enter the message he wants and I am trying to
read the information through the setTemplate() method. What happens is
that Turbine expects to receive there the path of the template to use.
Anyone knows how can I read the Textarea and use the information that
was entered there as the body of the e-mail (instead of the template?)
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]