velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Long Zhao" <LZ...@firstgenetic.net>
Subject RE: newbie question
Date Mon, 05 May 2003 20:16:49 GMT


-----Original Message-----
From: Dave Newton [mailto:dave@solaraccess.com]
Sent: Monday, May 05, 2003 4:05 PM
To: Velocity Users List
I checked the api, the templateString is not the content but the name of the template.
I have byte[] or stream from database, how can I convert it to a template?

Thanks




Subject: Re: newbie question


On Mon, 2003-05-05 at 13:37, Long Zhao wrote:
> can I get a template from byte[] or steam?

You can parse a template contained in a String by doing a:

Velocity.mergeTemplate(templateString, 
                       encoding, 
                       velocityContext, 
                       outputStream)

(more or less)

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message