You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Ra...@in.firstapex.com on 2005/12/19 15:26:37 UTC

Regarding Velocity and Frameworks

Hello Guys,

           I am Raghav  , i have a question regarding Velocity , I 
 am using velocity in a new project which is web based, i dont want 
 to use any specific web framework
 as such, coz we have one of our own , my problem is that  when a 
 user enters any data in the form the VO's(Value Object) pertaining 
 to the field has to be populated
 automatically instead of me getting the parameters from the form 
 and manually setting them, Is there any way to do this ? With-out 
 the use of any framework
 If there is not ? can u suggest  a good framework that goes well 
 with velocity and is simple to configure and use!!!

 Thanking You
 Raghav

Re: Regarding Velocity and Frameworks

Posted by Will Glass-Husain <wg...@forio.com>.
(send email in plaintext if possible please -- it was a bit hard to read).

I recommend the Commons BeanUtils library.  With a single method call

BeanUtils.populate(bean,request.getParameterMap())

you can populate a bean with parameter values.  This supports Strings, ints, 
doubles, etc.  With a little more work you can create custom translators 
that will understand percents, trim string values and so forth.

http://jakarta.apache.org/commons/beanutils/

Best, WILL

----- Original Message ----- 
From: Raghavendra_Jayakumar@in.firstapex.com
To: velocity-user@jakarta.apache.org
Sent: Monday, December 19, 2005 6:26 AM
Subject: Regarding Velocity and Frameworks



Hello Guys,

          I am Raghav  , i have a question regarding Velocity , I
am using velocity in a new project which is web based, i dont want
to use any specific web framework
as such, coz we have one of our own , my problem is that  when a
user enters any data in the form the VO's(Value Object) pertaining
to the field has to be populated
automatically instead of me getting the parameters from the form
and manually setting them, Is there any way to do this ? With-out
the use of any framework
If there is not ? can u suggest  a good framework that goes well
with velocity and is simple to configure and use!!!

Thanking You
Raghav



---------------------------------------------------------------------
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