Hi all,
I'm trying to rebuild the question. I'm sorry if I'm ambigous in forming
the question. The core of the issue is not being able to understand how to
use the indexed property and in which form.
I have DataLineDetail bean representing one row of data. I'm trying to
expose this bean's some of the fields as editable. I have DetailSubmitForm
which encapsulates an ArrayList of DataLineDetail bean and provides indexed
properties as shown below.
My struts-config file looks something like this.
DetailAction which puts an ArrayList of DataLineDetail bean in session
scope, is something like this.
Request is forwarded to a
jsp page which has the following code
Here I think I'm supposed to use the indexedLineDetail property of the
Form, but how I'm not being able to figure out.
And then I have DetailSubmitAction, which should validate the data against
business logic and forward the same updated Collection to a simple display
page to get final confirmation from the user before it gets written to the
database.
Now the problem is the collection is not getting updated. I have checked
the ArrayList in the DetailSubmitAction itself. I'm still getting the
original collection.
Any ideas, as to where am I going wrong? This entire issue has taken
my good amount of time.
Regards,
Kinjal sonpal
[ April 03, 2004: Message edited by: Kinjal Sonpal ]