[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    RE: including one VM into another
From:       "Prabhakar Krishnaswami" <PKRISHNA () dynix ! com>
Date:       2004-06-24 17:34:33
Message-ID: 7C13C4200A6D494EBAB0C3FED95D7A24051A3D () POSTAL ! corp ! dynix ! com
[Download RAW message or body]

Thanks. I had to include the path but it works based n your suggestion.

Prabhakar Krishnaswami

Software Engineer

 

Dynix

pkrishnaswami@dynix.com

p 801-223-5817

f  801-223-5202

www.dynix.com


-----Original Message-----
From: Simon Christian [mailto:simon@stoutstick.com] 
Sent: Thursday, June 24, 2004 2:12 AM
To: Velocity Users List
Subject: Re: including one VM into another

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


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic