Re: How to suppress Velocity Transforms?
Doug Kirk <[email protected]>
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
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 Maverick for over 1 1/2 years, but here goes
> anyway...
>
> Maverick transforms my Velocity templates (the .vm files) and these
> are displayed without any problem. What I want to do is, in one
> particular place, is to apply the Velocity transform, and then return
> it as a text/plain file instead of html.
>
> In, maverick.xml, the section looks like:
>
> <command name="RemoteAccess">
> <controller class="blah.controllers.admin.RemoteAccess"/>
> <view name="success" content-type="text/plain"
> path="admin/remoteAccessResponse.vm"/>
> </command>
>
> When I run RemoteAccess.m, it is identified to the browser as html....
> Any ideas?
>
> Thanks a lot,
> Dan
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click
> here:http://www.vmware.com/wl/offer/358/0
> [INVALID FOOTER]
>
>
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
[INVALID FOOTER]