ing me the result properly.
((TestObject)arlCollection .get(3)).setPart(strPart);
Is this correct ?
-Original Message-
From: Pradyumna kumar, Jena (J.) [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 18, 2006 2:57 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: object mod
Mailing List; [EMAIL PROTECTED]
Subject: RE: object modify in collection index
I have 5 objects(java beans) in Collection.
I need retrive object from index 3 in collection modify it and add to
same
index.
>> why do u need to add?? We are just getting the reference for that
object a
I have 5 objects(java beans) in Collection.
I need retrive object from index 3 in collection modify it and add to
same
index.
>> why do u need to add?? We are just getting the reference for that
object and the object is still in the collection.
What is best collection for this requirement.
Any changes made to an Object will reflect in collection also ;
for your case ,have to remove and then add
-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: May 18, 2006 5:15 PM
To: user@struts.apache.org
Subject: object modify in collection index
I have 5 objects
I have 5 objects(java beans) in Collection.
I need retrive object from index 3 in collection modify it and add to same
index.
What is best collection for this requirement.
At present i tried this with arraylist.
But in addition to object with 3 rd index modified i am getting one more
object adde
5 matches
Mail list logo