You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raghuveer <ra...@infotechsw.com> on 2005/12/08 05:51:43 UTC

Action Config in Struts for Forward Action

How to reset the form bean,If form bean is used in action mapping for
ForwardAction.

As per below code when ever i click "partDataSearch.do" i want the formbean
to be reset.

-----------------------
JSP

<html:form name="cPartDataActionForm"
type="com.utc.iae.ip.actionforms.CPartDataActionForm"
action="/partDataSearch.do" >


--------------------------------------------------------------
StrutsConfig.xml
<action path="/partDataSearch" scope="request" name="cPartDataActionForm"
   type="org.apache.struts.actions.ForwardAction" validate="false"
parameter="/jsp/partsearchpopup.jsp"/>






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Action Config in Struts for Forward Action

Posted by Ted Husted <te...@gmail.com>.
The reset method would be called in the normal course before the
ActionForm is populated. What reset does is up to you. For the base
ActionForm, it's an empty method that you can override. In the case of
DynaActionForms, you can specify an initial=value and use reset=true
to have the property set to that value before any auto population
event.

-- HTH, Ted.
http://www.husted.com/poe/


On 12/7/05, Raghuveer <ra...@infotechsw.com> wrote:
>
> How to reset the form bean,If form bean is used in action mapping for
> ForwardAction.
>
> As per below code when ever i click "partDataSearch.do" i want the formbean
> to be reset.
>
> -----------------------
> JSP
>
> <html:form name="cPartDataActionForm"
> type="com.utc.iae.ip.actionforms.CPartDataActionForm"
> action="/partDataSearch.do" >
>
>
> --------------------------------------------------------------
> StrutsConfig.xml
> <action path="/partDataSearch" scope="request" name="cPartDataActionForm"
>    type="org.apache.struts.actions.ForwardAction" validate="false"
> parameter="/jsp/partsearchpopup.jsp"/>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org