Fork me on GitHub
<< back to Core Developers Guide Edit on GitHub

Static Parameters Interceptor

This interceptor populates the action with the static parameters defined in the action configuration. If the action implements {@link 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 elements within xwork.xml.


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>