Shan - You can use the evaluate method on a VelocityEngine instance -- pass in your own StringWriter:.
See http://velocity.apache.org/engine/releases/velocity-1.4/api/org/apache/velocity/app/VelocityEngine.html#evaluate(org.apache.velocity.context.Context,%20java.io.Writer,%20java.lang.String,%20java.lang.String) -Shailesh On Thu, Jan 15, 2009 at 4:32 PM, ashan <arthan...@gmail.com> wrote: > > I will try to ask this in Velocity forum. It would be very convenient if we > have a overloaded VelocityUtil.mergeTemplatexx that takes InputStream > instead of template file name ;) . > > Thanks! > > > > > ashan wrote: > > > > I'm using appfuse 2.x. I need to let user to customize email content > > before sending. So I have a screen with textarea that shows velocity > > template so that user can add their additional contents / customize > > current content before sending. > > > > Is there a way to pass this modified content to template engine without > > saving this into a file? > > > > Any other better solution? > > > > Thanks! > > Shan > > > > > > -- > View this message in context: > http://www.nabble.com/Working-with-velocity-templates-tp21476180s2369p21487366.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >