Hi.

On Fri, 2005-01-28 at 11:39 -0800, sunil goyal wrote:
> Hello all,
> 
> I am using Velocity within some
> servlets(VelocityServlet).

VelocityServlet is deprecated. You should use VelocityViewServlet, from
the tools subproject.

> I want to get a template
> from a String rather than a file. I am not able to
> find the appropriate function for that.
> 
> For getting a template from file, there is a method
> called
> Template getTemplate(String path) in VelocityServlet. 
> 
> I am storing small template files as String in a
> database, and want to construct template from that
> string.
> 
> Template getTemplateFromString(String data) or an
> InputStream ?

You can check the VelocityEngine.evaluate method
http://jakarta.apache.org/velocity/api/org/apache/velocity/app/VelocityEngine.html

--
Claude

-- 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to