質問

<action name="userLogin" class="com.cc.ad.web.common.UserLoginAction">
    <result name="error">/user-login.jsp</result>
    <result name="redirect" type="redirect">${retUrl}</result>
    <result name="customerRedirect" type="redirect">${customerRedirect}</result>
    <result name="supplierRedirect" type="redirect">${supplierRedirect}</result>
    <result name="diamondViewRedirect" type="redirect">${diamondViewRedirect}</result>          
    <result name="supplierPopupRedirect" type="redirect">${supplierPopup}</result>
    <result name="customerPopupRedirect" type="redirect">${customerPopup}</result>  
</action>

上に私は、Struts XMLファイルに書かれている多くのものの1つを示しています。ここでは、メソッド属性に定義されているものは何もないので、このアクションが呼び出されたときに、ユーザーロジナクションクラスのどの方法が呼び出されるかについて混乱しています。

役に立ちましたか?

解決

メソッド名がアクション構成で指定されていない場合、Strutsは名前のメソッドを探します execute デフォルトで。

Struts 2.0アクション構成ドキュメント

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top