Velocity may be just the ticket for you. Briefly here, https://www.liferay.com/community/wiki/-/wiki/Main/Email+Velocity+Template
and at http://velocity.apache.org
Domanda
Is there a better or less ugly way to form e-mails inside a Java web app? I am currently using ALOT of static final Strings to represent both default property and the names of property settings. I then combine all of those and send out the e-mail.
My current e-mail class contains the following:
The current set-up is messy and just feels wrong, anything simpler?
Soluzione
Velocity may be just the ticket for you. Briefly here, https://www.liferay.com/community/wiki/-/wiki/Main/Email+Velocity+Template
and at http://velocity.apache.org