Package name.matthewgreet.strutscommons.interceptor
package name.matthewgreet.strutscommons.interceptor
Various Struts 2 Interceptors.
-
ClassDescriptionDeprecated.Only recognises form fields in formatted/unformatted pairs (pair conversion mode).Describes a form field annotation, its type, and an instance of a policy it configures, if applicable.Describes the result of a attempting to convert from a string to the generic type, and the field to receive it, successful or not.Struts 2 Interceptor for setting form fields from request parameters, adjusting, converting, validating, and writing error messages where data type conversion fails, according to form field annotations.If the action implements BrowserTabAware, sets tab id from cookies.If the action implements BrowserTabAware, sets tab id from cookies.Overrides ExceptionMappingInterceptor to always enable logging at ERROR level using the Action's class as the logging category.Struts 2 Interceptor used by view Actions for writing formatted versions of forms onto the Value Stack, so they're displayed instead of the unformatted form, using any conversion annotations on form fields.Retrieves a form stored in the session by
FormStoreInterceptorand injects it into the action's member variable configured by theFormannotation to accept it.If the action implementsFormDriven, stores the form in the session so it may be retrieved by a later action that displays it.If the action implements ValidationAware, amalgametes all action errors and messages from other validation aware actions in the Value Stack.If the Struts action implementsValidationAware, removes errors and messages stored in the session byMessageStoreInterceptorand injects it into the action.If the action implementsValidationAware, stores the errors and messages in the session so it may be retrieved by a later action that displays it.Struts 2 Interceptor for setting conversion errors as overriding properties of the Value Stack, so rejected and failed form field values are displayed.Detects an exception not handled by the form driven action, logs it, changes the result to 'input' or 'error' as needed and, if it implements ValidationAware, writes an action error for the user.