Class MessageStoreInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.MessageStoreInterceptor
- All Implemented Interfaces:
Serializable,ConditionalInterceptor,Interceptor
If the action implements ValidationAware, stores the errors and messages in the session so it may be
retrieved by a later action that displays it. It is usually part of the FormDrivenStack interceptor stack and
retrieved by MessageRetrieveInterceptor as 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 can't be usefully extended.
Example code
@InterceptorRefs({
@InterceptorRef(value="messageStore"),
@InterceptorRef(value="basicStack")
})
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintercept(ActionInvocation invocation) voidsetDisabled(boolean disabled) Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptor
destroy, init, setDisabled, shouldIntercept
-
Field Details
-
SESSION_STORED_MESSAGES
-
-
Constructor Details
-
MessageStoreInterceptor
public MessageStoreInterceptor()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceInterceptor- Specified by:
interceptin classAbstractInterceptor- Throws:
Exception
-
getDisabled
public boolean getDisabled() -
setDisabled
public void setDisabled(boolean disabled)
-