Interceptor tweaking boolean parameters. parameters with names starting by PREFIX will be stripped of it, and if no value is available under stripped name explicitely set to false.

This helps to overcome problem with boolean checkboxes ( unchecked value is not sent by browser )

To be used before ParametersInterceptor.

Parameters

  • prefix - The prefix that identify the parameter whose corresponding property will be set to false (by default). Default to 'FALSE.'
  • booleanValue - The boolean value to be set (default to 'false')

Extending the Interceptor

No known extension points.

Examples

<package ...>
     <interceptors>
          <interceptor-stack name="myStack">
             ....
             <interceptor-ref name="booleanTweaker" />
             <intercetor-ref name="params" />
             ....
          </interceptor-stack>
      </interceptors>

     <action ....>
         <interceptor-ref name="myStack" />
         ....
     </action>
     ....
</package>