You shouldn't have to override the reset method, the default method does nothing.
The ActionController does not recreate a session bean. If one is there it calls reset, and populates it. If you check the code, you will see that it is quite careful, and even looks twice to be sure. Perhaps there is another bean in request scope that is being accessed instead. Generally, you should not have to create the ActionForm beans yourself. If it is specified in the mapping, the Controller is guaranteed to create it for you. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ Cameron Ingram wrote: > > Hi all! > > Ok here is the problem.... I have a form bean that I create in an action class, I >then set the variables in it and then add it to the session. > This is before the corresponding jsp has been loaded The jsp is loaded and it >appears that the action servlet is then recreating the form bean and re-adding it to >the session, thus all of the fields I set are set back to there original values. I >overrode the reset method so I know that it's not calling that to clear the >variables. As I understand it the action servlet should check to see if it's in the >session before it recreates it. The name I am using to define it in the session is >the same name that the struts-config file uses to define the name. Any ideas??? > > <form-bean name="editdeleteuserndsForm" ¯->This is the name that I am using when the >form bean is added to the session. > type="net.pscu.ndswebutils.EditDeleteUserNdsForm"/> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>