Class FormStoreInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.FormStoreInterceptor
- All Implemented Interfaces:
Serializable,ConditionalInterceptor,Interceptor
If the action implements FormDriven, stores the form 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
FormRetrieveInterceptor as part of the FormDrivenStack interceptor stack.
Interceptor parameters
- disabled
- If true, this interceptor is skipped. Defaults to false.
Extending the interceptor
This can't be usefully extended.
Example code
@InterceptorRefs({
@InterceptorRef(value="formStore"),
@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_FORM
-
-
Constructor Details
-
FormStoreInterceptor
public FormStoreInterceptor()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceInterceptor- Specified by:
interceptin classAbstractInterceptor- Throws:
Exception
-
getDisabled
public boolean getDisabled() -
setDisabled
public void setDisabled(boolean disabled)
-