http://jakarta.apache.org/struts/api-1.0/org/apache/struts/action/Action
Form.html#reset(org.apache.struts.action.ActionMapping,
javax.servlet.http.HttpServletRequest) states: 
        "This method is called before the properties are *re*populated
by the controller servlet. " (* by me)

So the reset() method isn't called the first time your form is used,
only the second and following times.

Confused me too the first time I encountered it :-)

hth,
tomK


> -----Original Message-----
> From: Antony [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 16:38
> To: [EMAIL PROTECTED]
> Subject: reset method of ActionForm bean
> 
> 
> How should I configure struts-config.xml in order to let 
> ActionServlet call the reset() method?
> 
> It appers that my reset method is never called.....
> 
>     <form-bean  name="dateForm"
>                   type="com.webCalendar.forms.dateForm"/>
> 
>     <action     path="/setDate"
>                  type="com.webCalendar.actions.setDateAction"
>                  name="dateForm"
>                  scope="request"
>                  input="/calendar.jsp"
>                  validate="false"/>
> 
> Is something wrong with it?
> 

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

Reply via email to