Re: [Mav-user] How to suppress Velocity Transforms?

2003-08-25 Thread Johan Lundberg
Hi Dan Jeff told me about the following trick some time ago. I needed to get the SVG plugin to understand that SVG content was coming instead of html. Below is the first line of my velocity template: $response.setContentType(image/svg+xml)?xml version=1.0? the rest of my SVG document...

RE: [Mav-user] How to suppress Velocity Transforms?

2003-08-25 Thread Schnitzer, Jeff
It should be possible to call $response.setContentType() anywhere near the top of the template. Without Maverick transforms (which can change the output flow considerably), this works the same way that JSP works: . The servlet container provides a buffer of some size into which output is

Re: [Mav-user] How to suppress Velocity Transforms?

2003-08-25 Thread Doug Kirk
I think that's a Velocity thing and not a Maverick thing. Try this in your template: $response.setContentType('text/plain') -dk On Sunday, August 24, 2003, at 03:49 PM, Dan Finkelstein wrote: Hi -- I know this is a really dumb question, esp considering that I've been using and relying on