velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "deepak va" <>
Subject Re: Passing a list from VM file to action class
Date Thu, 07 Jun 2007 13:50:24 GMT
Hi Will,

Thanks a lot. Please let me know if it is correct to use JavaScript for 
client side validation of the form feilds in velocity VM files.


>From: "Will Glass-Husain" <>
>Reply-To: "Velocity Users List" <>
>To: "Velocity Users List" <>
>Subject: Re: Passing a list from VM file to action class
>Date: Wed, 6 Jun 2007 08:38:57 -0700
>Hi Deepak,
>Not really a velocity issue, more of a general web/MVC issue.  The exact 
>to do this depends on what framework you are using (Struts, Turbine,
>VelocityViewServlet, your own).
>When I'm using my own servlet, I usually set the name of the checkbox to
>"id" and the value to the record id.  When the page is submitted, my 
>collects all the values for the parameter "id" and does a select statement
>with an IN operator.
>On 6/6/07, deepak va <> wrote:
>>Please sugest how to send List from the vm file to the action class.
>>We get the records from the database as a list in the VM file and display
>>textboxes using <table> tags.
>>Each record is provided with a checkbox. When the user checks few of them
>>and clicks update button all the records corresponding to the checkbox
>>to be submitted to the action class.
>>They would then be inserted into the database.
>>Catch all the cricketing action right here. Live score, match reports,
>>photos et al.
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:
>Forio Business Simulations
>Will Glass-Husain

Voice your questions and our experts will answer them

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message