View Single Post
  #2 (permalink)  
Old 07-16-2007, 06:31 PM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
In your createElement method, you are adding Vectors into your Vector. But in "Save" action, you are trying to obtain Person objects! Either add Person objects to your Vector or try to obtain Vector objects from your Vector!

So you can't cast a Vector object to Person object. This is your mistake!

Code:
Person temp = (Person) vector.elementAt(i);
Reply With Quote