velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <d...@solaraccess.com>
Subject Re: newbie question
Date Mon, 05 May 2003 20:05:25 GMT
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


Mime
View raw message