} 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.
Never take anything for granted because you never know when you will lose it
You're calling the setStr method with each value from the Vector, but each one replaces the prior value so you only see the last one. Maybe you could build up a single string with all the values in your loop and call setStr after the loop.
You'll have to work out the spaces and commas and such to make allValues look nice, but something like that oughtta work.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi