Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Interceptors > Static Parameters Interceptor
Added by digi9ten, last edited by Ted Husted on Sep 10, 2006  (view change)
Content pulled from external source. Click here to refresh.

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.

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

Parameters

Content pulled from external source. Click here to refresh.

  • None

Extending the Interceptor

Content pulled from external source. Click here to refresh.

There are no extension points to this interceptor.

Examples

Content pulled from external source. Click here to refresh.
<action name="someAction" class="com.examples.SomeAction">
    <interceptor-ref name="static-params">
         <param name="parse">true</param>
    </interceptor-ref>
    <result name="success">good_result.ftl</result>
</action>