Dear Wendy,

thanks for your submission, I also have a reset function in my and it looks
like this:

public void reset(ActionMapping mapping, HttpServletRequest request)
{
  customerId = null;
  name = null;
  resources = null;
}

I don't see any function in ActionForm that looks like initialize(mapping);
I presume you have written your own?

Anyway, it looks like the reset method isn't called. Could it be that my
LookupDispatchAction isn't implemented well?

Thanks for any submissions in advance!

Regards,

Ronald Rotteveel



----- Original Message ----- 
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 4:05 PM
Subject: FW: LookupDispatchAction -> ActionForward -> ActionForm (after
successfull insert not empty).


> Obviously, that was the wrong key...
>
> > From: Ronald Rotteveel [mailto:[EMAIL PROTECTED]
> > I WOULD LOVE lose the name of the customer that I just inserted.
> > If I come back to the customer form now, the
> > field where someone can type a name is already filled with
> > the name I just inserted.
>
> Sounds like your form bean is in session scope.  You may want to
> implement the 'reset' method of ActionForm, as the default
> implementation does nothing.  I have this in reset on one of my forms:
>
>      initialize( mapping );
>
> -- 
> Wendy Smoak
> Application Systems Analyst, Sr.
> ASU IA Information Resources Management
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to