struts.xmlで次のアクションが宣言されています。
<action path="/updateAccountInfo"
type="org.myCompany.UpdateAccountAction"
name="myAccountForm"
scope="session"
validate="true"
parameter="method"
input="/updateAccountInfo.jsp">
<forward name="success" path="/updateAccountInfo.jsp" />
</action>
私のJSPページには、次のフォームがあります。
<html:form action="/updateAccountInfo.do">
<input type="hidden" name="method" value="sendMessage" />
私のJavaクラスには、次のメソッドがあります。
public final ActionForward sendMessage(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
System.out.println("sending");
return null;
}
sendMessageを実行する代わりに、Strutsはexecuteメソッドを呼び出します。なんで?私のstruts-configは間違っていますか?または、別の構成設定がありませんか?