By Date: <-- -->
By Thread: <-- -->

Template tool



--- Begin Message ---
You can also have your templates in a database. There is a way to tell the velocity engine to load templates from a database.

________________________________

From: Michael Rimov [mailto:rimovm (at) centercomp.com]
Sent: Thu 6/15/2006 5:08 AM
To: 'Tomcat Users List'
Subject: RE: Template tool




> does it can handle  templates   from   String  or  has to be  templates on
> file

Nope, will work with a file.  Be aware of XSS (Cross Site Scripting) when
dealing with velocity, but that's about the only caveat.

Here's the hello world example:


http://jakarta.apache.org/velocity/docs/user-guide.html#Hello%20Velocity%20W
orld!

HTH!
                                                -Mike




---------------------------------------------------------------------
To start a new topic, e-mail: users (at) tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
For additional commands, e-mail: users-help (at) tomcat.apache.org



<<winmail.dat>>


--- End Message ---
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users (at) tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
For additional commands, e-mail: users-help (at) tomcat.apache.org