Fork me on GitHub
Edit on GitHub << back to Interceptors

Static Parameters Interceptor

This interceptor populates the action with the static parameters defined in the action configuration. If the action implements Parameterizable, a map of the static parameters will be also be passed directly to the action. The static params will be added to the request params map, unless merge is set to false.

Parameters are typically defined with <param> elements within struts.xml.


There are no parameters for this interceptor.

Extending the Interceptor

There are no extension points to this interceptor.


 <action name="someAction" class="com.examples.SomeAction">
     <interceptor-ref name="staticParams">
          <param name="parse">true</param>
          <param name="overwrite">false</param>
     <result name="success">good_result.ftl</result>