Hi all, me again ;-)

Heres one. How do I handle an unknown number of forms. For example, lets say I 
am outputting 5 records from a database. Each row needs to have a small form 
to update a value fro that row. These updates are all the same, using the 
same form and action, but sourcing different data.

I've tried having the same form on each row, but it appeared to store the 
wrong value in the form bean when I hit submit. Usually the value from the 
last form on the page seemed to be the one stored rather than the one I had 
hit update on.

So I'm currently using the older html input controls without any forms. I'm 
adding javascript code to each control to update a single form at the bottom 
of the page which contains hidden elements. Each submit button then tells 
this form to submit. This works ok, but it's messy and I'm sure there must be 
a way to handle what is effectively an array of forms.

Any ideas ?


Regards,
Derek Clarkson
Analyst/Programmer
Waterwerks Pty Ltd
Melbourne
Australia

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

Reply via email to