You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by an...@wipro.com on 2004/03/05 21:23:12 UTC

Reset all form bean elements in one shot

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 Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

Re: Reset all form bean elements in one shot

Posted by Geeta Ramani <ge...@cmpco.com>.
Anant: So a brand new form bean won't do the job..?
Geeta

anant.parnami@wipro.com 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 Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org