Class MessageAmalgamationInterceptor

java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.MessageAmalgamationInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor, com.opensymphony.xwork2.interceptor.PreResultListener, Serializable

public class MessageAmalgamationInterceptor extends com.opensymphony.xwork2.interceptor.AbstractInterceptor implements com.opensymphony.xwork2.interceptor.PreResultListener

If the action implements ValidationAware, amalgametes all action errors and messages from other validation aware actions in the Value Stack.

Interceptor parameters

None

Extending the interceptor

This can't be usefully extended.

Example code

 @InterceptorRefs({
   @InterceptorRef(value="messageAmalgamation"),
   @InterceptorRef(value="defaultStack")
})
 
See Also:
  • Constructor Details

    • MessageAmalgamationInterceptor

      public MessageAmalgamationInterceptor()
  • Method Details

    • beforeResult

      public void beforeResult(com.opensymphony.xwork2.ActionInvocation invocation, String resultCode)
      Specified by:
      beforeResult in interface com.opensymphony.xwork2.interceptor.PreResultListener
    • intercept

      public String intercept(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
      Specified by:
      intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
      Specified by:
      intercept in class com.opensymphony.xwork2.interceptor.AbstractInterceptor
      Throws:
      Exception