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

List:       velocity-user
Subject:    Re: a question
From:       "Sam Huang" <samhng () gmail ! com>
Date:       2005-04-25 1:59:59
Message-ID: 00ad01c5493a$7f8f8490$5a01a8c0 () microsof650437
[Download RAW message or body]

Hello,
Besides the official material, I would like to suggest you the following references \
that proven to be useful for me. \
http://today.java.net/pub/a/today/2003/12/16/velocity.html \
http://portals.apache.org/jetspeed-1/tutorial/7/velocity.html \
http://www.javaworld.com/javaworld/jw-12-2001/jw-1228-velocity.html With the clear \
examples, i hope you may not need too much time in understanding how to put the \
concept into real world solutions.

Regards,
Sam Hwang

----- Original Message ----- 
From: "Andrew Mason" <andrew@assertis.net>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Monday, April 25, 2005 12:09 AM
Subject: Re: a question


> A .vm file is just a template. You use velocity to merge a context into a 
> template.
> 
> so in your  vm file it will have
> 
> $test how are you
> 
> in your application  or servlet you then add whatever object or value you want 
> into the context
> 
> context.add("test","hello");
> 
> and in your application you will see
> 
> hello how are you.
> 
> ---------------------------------------------------------------------
> 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