Hello,
I have a vector called v1 and I am loading values to the vector from a resultset.
--while ((getDet_hasData)&&(Repeat1__numRows-- != 0)) {
--v1.addElement(getDet.getObject("EMAIL")+",");
------- some code
)
where getDet is name of the resultset.
I am iterating the loop
Object vect;
String str = "";
for(int i=0;i<v1.size();i++) {
vect = v1.get(i).toString();
str = (String)vect;
bean.setStrValues(4,str);
}
setStrValues is a method in the bean and passing the value.
My problem is I am getting only the last value in my method, after the for loop I have other code to process. Since I am taking the value in the vector and I am iterating I should get all the values, rather than the last values.
What could be the problem and how can I solve it. Please help me
Any help is highy appreciated.
Thanks
Cosmos