Thank you for your inputs, actually I was also trying something
similar.

-Sachin

>>> [EMAIL PROTECTED] 6/28/2003 9:39:03 PM >>>

Hi,

why don't you name your variables var<cnt>, 0<=cnt<=N, and add a
hidden
counter 'maxtasks' on your page that holds the number of variables
you're
managing (which you already know when you generate the page)? In that
way
you have var1, var2, etc. until 'maxtasks' in your form, which you can
obtain as parameters in your request. You know which one is the
highest
value, because you dispose of 'maxtasks'.
                                                      
                                                      
                                                      
 Bo                                                   
                                                      







                                                                       
                          
                    "Sachin                                            
                          
                    Kumar"               Para:  
<[EMAIL PROTECTED]>                
                    <[EMAIL PROTECTED]        cc:                           
                          
                    ll.com>              Fax para:                     
                          
                                         Asunto:      Help needed      
                          
                    28/06/2003                                         
                          
                    09:00                                              
                          
                    Por favor,                                         
                          
                    responda a                                         
                          
                    "Turbine                                           
                          
                    Users List"                                        
                          
                                                                       
                          
                                                                       
                          



Hi,

I have to send data from a vm page to the server side where I could
process it and save it into database.
For example:
Suppose I have a Effort Entry form, where I have
Task Name      Effort Spent
T1                   __________                        a text field
T2                   __________

The number of tasks is known dynamically, from database. I need to
fill
the effort for the listed tasks and then call SAVE on it.
Now my action method doInsert() is called which takes this data and
save these multiple records in a TASK table in database.
Here if you see, if I have 'N' tasks , then I have to create N
varialbes which I am doing using velocityCount (like
task$velocityCount). So the problem is that again on server side to
get
the data I need to generate the same variable names. I know this is
not
a good way, but would like to hear from any of you guys who have
better
ideas /solution to do the same.

Thanks in advance.

Sachin



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to