You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Prabhakar Krishnaswami <PK...@dynix.com> on 2004/06/24 01:26:59 UTC
RE:including one VM into another
I am trying to generate some XML using velocity.
I start with a tag
<displayQuestions>
At this point I want to include the contents of another VM which has XML
for generating errors. So I added #parse error.vm.
When I did this I got a parse error.
So my question is, is it possible to include the contents of another VM
into one that is being parsed. If this is possible, could somebody tell
me how this can be done?
Prabhakar Krishnaswami
Software Engineer
Dynix
pkrishnaswami@dynix.com
p 801-223-5817
f 801-223-5202
www.dynix.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: including one VM into another
Posted by Simon Christian <si...@stoutstick.com>.
Absolutely this is possible. Are you actually putting the following line
into your template?
#parse error.vm
If so, that's incorrect and would throw an error. It should be:
#parse( "error.vm" )
- simon
Prabhakar Krishnaswami wrote:
> I am trying to generate some XML using velocity.
>
> I start with a tag
> <displayQuestions>
>
> At this point I want to include the contents of another VM which has XML
> for generating errors. So I added #parse error.vm.
>
> When I did this I got a parse error.
>
> So my question is, is it possible to include the contents of another VM
> into one that is being parsed. If this is possible, could somebody tell
> me how this can be done?
>
> Prabhakar Krishnaswami
>
> Software Engineer
>
>
>
> Dynix
>
> pkrishnaswami@dynix.com
>
> p 801-223-5817
>
> f 801-223-5202
>
> www.dynix.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org