thank you for you help, but this problem still isn't solved...let me show you a bit of test code that demonstrates the problem
Vector a = new Vector();
Vector b = new Vector();
Vector c = new Vector();
//grab my object from session and isolate personGroup
DBObject dbo =...
i have a vector holding objects. i want to clone it. if the vector is called v can i say:
Vector newVector = (Vector)v.clone();
?
will this be a complete new copy without any reference to the old one? if i make changes to v do i see those changes in newVector?
thankyou
okay...think i understand why that does work, but here's what i've done to "fix" it...which ofcourse still doesn't work
the object i want to copy to the session is a vector. i tried using the vector.clone() method, but without any luck...never really used it, so must be doin it...
i'm trying to build an undo method for an html form submission. the form is submitted and prior to the new data being added to an object, i copy that object to the session. then, i make the changes. when i call the undo method and retrieve that unchanged object from the session, it comes out...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.