On Thu, 10 Jul 2003, Alex Shneyderman wrote:

> Date: Thu, 10 Jul 2003 10:49:57 -0400
> From: Alex Shneyderman <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Simplest way to clear DynaActionForm?
>
> What is the fastest/simplest way of clearing the DynaAcitonForm?
>
> I am looking for something like:
>
> DynaActionForm form = init here;
>
> :
> :
>
> logic goe s here
>
> if (need to manually clear the form) {
>    form.clear (); // ????
> }

One option would be to call the initialize() method, which sets all the
properties to their initial values as specified in the struts-config.xml
file.

Another choice would be to call form.getMap().clear() which will remove
all the entries from the internal map being used to maintain property
values.

>
> Thanks,
> Alex.
>

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to