Class MessageRetrieveInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.MessageRetrieveInterceptor
- All Implemented Interfaces:
Serializable,ConditionalInterceptor,Interceptor
If the Struts action implements ValidationAware, removes errors and messages stored in the session by
MessageStoreInterceptor and injects it into the action. It is usually part of the ViewStack interceptor stack.
Interceptor parameters
- disabled
- If true, all processing is disabled. This is useful for standalone popup windows, especially self-refreshing ones, that never display messages. Defaults to false.
Extending the interceptor
This interceptor cannot be usefully extended.
Example code
@InterceptorRefs({
@InterceptorRef(value="messageRetrieve"),
@InterceptorRef(value="basicStack")
})
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintercept(ActionInvocation invocation) voidsetDisabled(boolean value) Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptor
destroy, init, setDisabled, shouldIntercept
-
Constructor Details
-
MessageRetrieveInterceptor
public MessageRetrieveInterceptor()
-
-
Method Details
-
getDisabled
public boolean getDisabled() -
setDisabled
public void setDisabled(boolean value) -
intercept
- Specified by:
interceptin interfaceInterceptor- Specified by:
interceptin classAbstractInterceptor- Throws:
Exception
-