Hello all, My name is Evan Leonard. This is my first post to the users group, so I'd like to start by saying, great work with velocity. I am enjoying working with it very much. Simple & powerful, excellent.
I am mainly using velocity in a struts/servlet situation, but I'd like a more general answer that would work in other environments as well. My question has to do with writing directly to the output stream that the velocity engine is using, mid-template. For instance if I have a template that looks like: ...[some html]... $RefenceToAnObjectWithAStream.streamToOutput($ReferenceToOutputStream) ...[some more html]... I'm not sure what output stream to pass to the streaming function. I've tried using $response.getOutputStream and $response.getWriter from within the template. I've tried making a velocity view tool that grabs the response in its init method and holds on to it until the tool is used. But these methods all create very unusual results, like outputing things in the wrong order, or not outputing some things at all. So my question is, how do I get ahold of the actual stream that the velocity engine is using, from within a template, and add my own output to it? Is this possible, or is there a better way? Thank you in advance, Evan Leonard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]