I am currently converting a Struts 2 application to use the Convention plugin and Annotations instead of the XML configuration.
The original XML looks like:
<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>
which I have replaced with
@Action(value="store", interceptorRefs=@InterceptorRef("store"))
public String store() throws Exception
{
....
}
but I am unsure how to pass in the parameter to the Message Store Interceptor. Any thoughts?