Re: reset method causes values not displaying

2004-10-27 Thread Jeff Beal
Implement the Cloneable interface on your ActionForm and call XXX newForm = (XXX)oldForm.clone(). Read the JavaDoc on Cloneable and the Object.clone() method for more information. -- Jeff dmu2201 wrote: Sebastian Ho wrote: Now this is a Java question, if "XXX newForm = (XXX) form" resulted in f

Re: reset method causes values not displaying

2004-10-27 Thread dmu2201
Sebastian Ho wrote: Now this is a Java question, if "XXX newForm = (XXX) form" resulted in form and newForm having the same memory space? How do I really make a duplicate copy with different memory space (beside using new, or is new the only solution)? Sebastian Ho Since this is Java and not C

Re: reset method causes values not displaying

2004-10-27 Thread Sebastian Ho
Now this is a Java question, if "XXX newForm = (XXX) form" resulted in form and newForm having the same memory space? How do I really make a duplicate copy with different memory space (beside using new, or is new the only solution)? Sebastian Ho On Wed, 2004-10-27 at 17:44, dmu2201 wrote: > Seb

Re: reset method causes values not displaying

2004-10-27 Thread dmu2201
Sebastian Ho wrote: Hi Can someone point out why this do not work, or why this work? What this does, get a Actionform, set a value in it, add the ActionForm into an Vector, set the Vector into Session. Strangely the new ActionForm is not displayed in the JSP returned by ActionForward. It only app

reset method causes values not displaying

2004-10-27 Thread Sebastian Ho
Hi Can someone point out why this do not work, or why this work? What this does, get a Actionform, set a value in it, add the ActionForm into an Vector, set the Vector into Session. Strangely the new ActionForm is not displayed in the JSP returned by ActionForward. It only appears if the Action