You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Asthana, Rahul" <Ra...@CIBC.com> on 2006/09/12 17:47:28 UTC
[struts 1.2.4] Problem with DispatchAction
Hi All,
Action which is derived from org.apache.struts.actions.DispatchAction was working fine with this entry,with the appropriate method being called. Please note that as yet I had not made any entry for the form bean in struts-config.xml.
<action path="/accounts/ViewMFAccountDetails"
name="accountHoldingsForm"
validate="false"
type="com.web.webapp.accounts.struts.action.ViewHoldingsAction"
scope="cachemanager"
parameter="operation">
<forward name="success"
path="/accounts/view_mf_acct_details.jsp"/>
</action>
As soon as I make this entry in struts-config.xml -
<form-bean
name="accountHoldingsForm"
type="com.web.webapp.accounts.struts.form.AccountHoldingsForm"/>
The methods in DispatchAction are not called any more.
Any help would be appreciated.
TIA
Rahul
RE: [struts 1.2.4] Problem with DispatchAction
Posted by "Asthana, Rahul" <Ra...@CIBC.com>.
FYI setting validate="true" makes the whole thing work somehow.
-----Original Message-----
From: Asthana, Rahul [mailto:Rahul.Asthana@CIBC.com]
Sent: Tuesday, September 12, 2006 11:47 AM
To: user@struts.apache.org
Subject: [struts 1.2.4] Problem with DispatchAction
Hi All,
Action which is derived from org.apache.struts.actions.DispatchAction was working fine with this entry,with the appropriate method being called. Please note that as yet I had not made any entry for the form bean in struts-config.xml.
<action path="/accounts/ViewMFAccountDetails"
name="accountHoldingsForm"
validate="false"
type="com.web.webapp.accounts.struts.action.ViewHoldingsAction"
scope="cachemanager"
parameter="operation">
<forward name="success"
path="/accounts/view_mf_acct_details.jsp"/>
</action>
As soon as I make this entry in struts-config.xml -
<form-bean
name="accountHoldingsForm"
type="com.web.webapp.accounts.struts.form.AccountHoldingsForm"/>
The methods in DispatchAction are not called any more.
Any help would be appreciated.
TIA
Rahul
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org