Use logic:iterate tag to iterate over the list in the jsp...

And in the action, set a property on from which tells what is the index of last bean...

And use logic equal tag to decide if a given iteration is iterating on last 
bean..using the above mentioned property...

And only for last bean use html:text..rest use bean:message so that they are read 
only...


Hope this helps..

regards,
Shirish

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 11:09 AM
To: Struts Users Mailing List
Subject: how to add a new record to a table


Hi,

I guess my problem is common but I couldn't find an answer on the
archive...
I have a bean that provides an indexed  property (a java.util.List).
I  have this list displayed on a jsp page with a table and I would like the
last row of the table to be editable.
When the user submits the form, I would like the last row (the editable
one) to be added as a new entry in the indexed property
Any advise for how to do that ?
Thanks

Thomas



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