Hi,
I'm migrating an app from
Struts 1 to Struts 2 and am missing some basic concepts. For some reason, my desired action in my class is not getting invoked. I have this
servlet ...
public class AccountsAction extends ActionSupport implements ServletRequestAware, ValidationAware, Validateable {
...
public
String pcFlow() {
logger.info("Entering pc flow action.");
return _redirect();
} // pcFlow
...
}
and this defined in my struts.xml file ...
<package name="myapp" namespace="/" extends="struts-default">
<default-action-ref name="index" />
<action name="pcFlow" class="com.myco.regui.struts.accounts.AccountsAction">
<result name="success">jsp/pcredirect.jsp</result>
<result name="input">jsp/start.jsp</result>
<result name="error">jsp/start.jsp</result>
</action>
...
</package>
Although the "validate" method in the above class is getting called properly, the desired action "pcFlow" is not getting invoked, which I know because nothing gets logged from teh debug statement. Any ideas what basic thing I'm missing?
Thanks, - Dave