If you consult the documentation for the reset() method [1], you'll
see it's mainly for resetting checkbox values:

"This method is not the appropriate place to initialize form value for
an "update" type page (this should be done in a setup Action). You
mainly need to worry about setting checkbox values to false; most of
the time you can leave this method unimplemented."

Hubert

[1] 
http://struts.apache.org/1.x/struts-core/apidocs/org/apache/struts/action/ActionForm.html

On 11/27/06, fea jabi <[EMAIL PROTECTED]> wrote:
Have the below in the form bean.


    public void reset(ActionMapping mapping,
                                javax.servlet.http.HttpServletRequest  request) 
{
                super.reset(mapping, request);
                set("empCost", Boolean.FALSE);
        set("orders", Boolean.FALSE);
    }


Is it required to call the super.reset()?

How is it related to the initialize values?

What happens if we don't call the super.reset() in the above reset method
and have
initial values?

Thanks.

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

Reply via email to