Thanks I never thought it would be as simple as this... :-) Why didn't I think of this before..:-(
-----Original Message----- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Saturday, March 06, 2004 2:22 AM To: Struts Users Mailing List Subject: Re: Reset all form bean elements in one shot session.removeAttribute("myForm"); myForm = new MyFormBean(); Regards, Geeta [EMAIL PROTECTED] wrote: > How to remove the form bean element from the session if that's the > case > > -----Original Message----- > From: Geeta Ramani [mailto:[EMAIL PROTECTED] > > Sent: Saturday, March 06, 2004 2:14 AM > To: Struts Users Mailing List > Subject: Re: Reset all form bean elements in one shot > > Anant: So a brand new form bean won't do the job..? > Geeta > > [EMAIL PROTECTED] wrote: > > > Hi, > > > > I wanted to know if there is any way in which we can reset all the > > > elements of the form bean without giving individual resets all the > > > time > > > > for e.g I have 4 elements in my form bean. say A,B,C,D I am > > interested > > > in resetting all the four without giving > > > > resetAllElements() { > > A = null > > B = null > > C = null > > D = null > > } > > > > Note: My form bean has session scope(I need it) > > > > Regards > > > > Anant > > > > Confidentiality Notice > > > > The information contained in this electronic message and any > > > attachments to this message are intended for the exclusive use of > > the > > > addressee(s) and may contain confidential or privileged information. > > > If you are not the intended recipient, please notify the sender at > > > Wipro or [EMAIL PROTECTED] immediately and destroy all copies of > > > this message and any attachments. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Confidentiality Notice > > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain confidential or privileged information. > If you are not the intended recipient, please notify the sender at > Wipro or [EMAIL PROTECTED] immediately and destroy all copies of > this message and any attachments. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

