Package name.matthewgreet.strutscommons.interceptor


package name.matthewgreet.strutscommons.interceptor

Various Struts 2 Interceptors.

The following configuration excerpt from struts.xml is recommended.

 <interceptor name="annotationValidation" class="name.matthewgreet.strutscommons.interceptor.AnnotationValidationInterceptor" />
 <interceptor name="annotationValidation2" class="name.matthewgreet.strutscommons.interceptor.AnnotationValidationInterceptor2" />
 <interceptor name="browserTab" class="name.matthewgreet.strutscommons.interceptor.BrowserTabInterceptor" />
 <interceptor name="browserTab2" class="name.matthewgreet.strutscommons.interceptor.BrowserTabInterceptor2" />
 <interceptor name="formFormatter" class="name.matthewgreet.strutscommons.interceptor.FormFormatterInterceptor" />
 <interceptor name="formRetrieve" class="name.matthewgreet.strutscommons.interceptor.FormRetrieveInterceptor" />
 <interceptor name="formStore" class="name.matthewgreet.strutscommons.interceptor.FormStoreInterceptor" />
 <interceptor name="messageAmalgamation" class="name.matthewgreet.strutscommons.interceptor.MessageAmalgamationInterceptor" />
 <interceptor name="messageRetrieve" class="name.matthewgreet.strutscommons.interceptor.MessageRetrieveInterceptor" />
 <interceptor name="messageStore" class="name.matthewgreet.strutscommons.interceptor.MessageStoreInterceptor" >
 <interceptor name="rejectedFormValues" class="name.matthewgreet.strutscommons.interceptor.RejectedFormValuesInterceptor" />
 <interceptor name="unhandledException" class="name.matthewgreet.strutscommons.interceptor.UnhandledExceptionWriterInterceptor" />
 
 <interceptor-stack name="CommonStackTop">
   <interceptor-ref name="browserTab" />
   <interceptor-ref name="browserTab2" />
 </interceptor-stack>
        
 <!-- This is the default stack minus the exception, params, conversionError, validation and workflow interceptor -->
 <interceptor-stack name="CommonStackBottom">
   <interceptor-ref name="alias" />
   <interceptor-ref name="servletConfig" />
   <interceptor-ref name="i18n" />
   <interceptor-ref name="prepare" />
   <interceptor-ref name="chain" />
   <interceptor-ref name="debugging" />
   <interceptor-ref name="scopedModelDriven" />
   <interceptor-ref name="modelDriven" />
   <interceptor-ref name="fileUpload" />
   <interceptor-ref name="checkbox" />
   <interceptor-ref name="multiselect" />
   <interceptor-ref name="staticParams" />
   <interceptor-ref name="actionMappingParams" />
 </interceptor-stack>
        
 <interceptor-stack name="StandaloneStack">
   <interceptor-ref name="CommonStackTop" />
   <interceptor-ref name="CommonStackBottom" />
 </interceptor-stack>
        
 <!-- Stack for actions that find or update data but not display it -->
 <interceptor-stack name="FormDrivenStack">
   <interceptor-ref name="CommonStackTop" />
   <interceptor-ref name="formStore" />
   <interceptor-ref name="messageStore" />
   <interceptor-ref name="unhandledException" />
   <interceptor-ref name="CommonStackBottom" />
   <interceptor-ref name="annotationValidation2">
     <param name="excludeMethods">input,back,cancel,browse</param>
   </interceptor-ref>
   <interceptor-ref name="validation">
     <param name="excludeMethods">input,back,cancel,browse</param>
   </interceptor-ref>
   <interceptor-ref name="workflow">
     <param name="excludeMethods">input,back,cancel,browse</param>
   </interceptor-ref>
 </interceptor-stack>
        
 <!-- Stack for actions that display data -->
   <interceptor-stack name="ViewStack">
   <interceptor-ref name="CommonStackTop" />
   <interceptor-ref name="CommonStackBottom" />
   <interceptor-ref name="annotationValidation2">
     <param name="excludeMethods">input,back,cancel,browse</param>
   </interceptor-ref>
   <interceptor-ref name="formRetrieve" />
   <interceptor-ref name="messageRetrieve" />
   <interceptor-ref name="messageAmalgamation" />
   <interceptor-ref name="formFormatter" />
   <interceptor-ref name="rejectedFormValues" />
 </interceptor-stack>