Class MessageStoreInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.MessageStoreInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.ConditionalInterceptor
,com.opensymphony.xwork2.interceptor.Interceptor
,Serializable
,org.apache.struts2.interceptor.ConditionalInterceptor
,org.apache.struts2.interceptor.Interceptor
public class MessageStoreInterceptor
extends com.opensymphony.xwork2.interceptor.AbstractInterceptor
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 aflUpdateStack interceptor stack and
retrieved by MessageRetrieveInterceptor
as part of the aflViewStack interceptor stack.
Interceptor parameters
none
Extending the interceptor
This can't be usefully extended.
Example code
@InterceptorRefs({ @InterceptorRef(value="messageStore"), @InterceptorRef(value="basicStack") })
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ConditionalInterceptor
com.opensymphony.xwork2.interceptor.ConditionalInterceptor.LegacyAdapter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
intercept, shouldIntercept, shouldIntercept
Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptor
destroy, init, setDisabled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.struts2.interceptor.Interceptor
destroy, init
-
Field Details
-
SESSION_STORED_MESSAGES
-
-
Constructor Details
-
MessageStoreInterceptor
public MessageStoreInterceptor()
-
-
Method Details
-
intercept
- Specified by:
intercept
in interfacecom.opensymphony.xwork2.interceptor.Interceptor
- Specified by:
intercept
in classcom.opensymphony.xwork2.interceptor.AbstractInterceptor
- Throws:
Exception
-