現在、Struts 2 アプリケーションを変換して、XML 構成の代わりにコンベンション プラグインと注釈を使用しています。
元の XML は次のようになります。
<action name="store" method="store"
class="com.company.webapp.dop.AuthorAction">
<result name="success" type="redirectAction">list</result>
<result name="input" type="tiles">.author.edit
</result>
<interceptor-ref name="store">
<param name="operationMode">STORE</param>
</interceptor-ref>
<interceptor-ref name="defaultStack" />
</action>
私が交換したもの
@Action(value="store", interceptorRefs=@InterceptorRef("store"))
public String store() throws Exception
{
....
}
しかし、パラメーターを Message Store Interceptor に渡す方法がわかりません。何かご意見は?