我正在尝试实现消息存储拦截器以在我的JSp上显示ActionMessages但无法访问ActionMessages。任何人都可以提供一个链接如何实现Message Store Interceptor?
答案 0 :(得分:0)
以下是我的一个应用程序实现Message Store Interceptor的代码。它有3种模式:
<action name="mailOffer" class = "com.xyz.action.ShareAction" method="mailOffer"> <interceptor-ref name="store"> <param name="operationMode">STORE</param> </interceptor-ref> <interceptor-ref name="defaultStack" /> <result name="mailOfferDone" type="redirectAction"> <param name="actionName">mailOfferDone</param> <param name="offerId">${offerId}</param> <param name="businessName">${businessName}</param> <param name="businessId">${businessId}</param> </result> </action> <action name="mailOfferDone" class = "com.xyz.action.ShareAction" method="mailOfferDone"> <interceptor-ref name="store"> <param name="operationMode">RETRIEVE</param> </interceptor-ref> <interceptor-ref name="defaultStack" /> <result name="success" type="tiles">display.share.page</result> </action>