PROTECTED]
Sent: Thursday, March 13, 2003 3:40 PM
Subject: Re: overriding DynaActionForm.reset is giving me NPE
I'm just trying to clear the checkbox. With the standard DynaActionForm,
it
doesn't get reset, so I have the standard HTML problem with not being able
to go from checked to unchecked
8:57 AM
To: Struts Users Mailing List
Subject: Re: overriding DynaActionForm.reset is giving me NPE
I would up having to call initialize (mapping) from within my overridden
reset (mapping, request) method.
SURELY there is a cleaner way to set/reset values in a DynaActionForm.reset
method
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.DynaActionForm;
import org.apache.struts.action.ActionMapping;
public class MemberForm extends org.apache.struts.action.DynaActionForm {
public void reset (ActionMapping mapping, HttpServletRequest request) {
functionality in reset or validate that you cant do using just the
Struts Validator and the struts config?
-Tim
-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 2:19 PM
To: Struts Users Mailing List
Subject: overriding DynaActionForm.reset is giving me
List' [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 3:33 PM
Subject: RE: overriding DynaActionForm.reset is giving me NPE
You dont need to reset attributes of DynaActionForms.
So if your trying to clear your checkbox just make sure that you dont have
a
default value defined for it and just
PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 3:33 PM
Subject: RE: overriding DynaActionForm.reset is giving me NPE
You dont need to reset attributes of DynaActionForms.
So if your trying to clear your checkbox just make sure that you dont
have
6 matches
Mail list logo