Save This Page
Home » xwork-2.1.1-src » com.opensymphony.xwork2.interceptor » [javadoc | source]
com.opensymphony.xwork2.interceptor
public class: StaticParametersInterceptor [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.interceptor.AbstractInterceptor
      com.opensymphony.xwork2.interceptor.StaticParametersInterceptor

All Implemented Interfaces:
    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.

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

Interceptor parameters:

Extending the interceptor:

There are no extension points to this interceptor.

Example code:


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

Method from com.opensymphony.xwork2.interceptor.StaticParametersInterceptor Summary:
intercept,   setParse
Methods from com.opensymphony.xwork2.interceptor.AbstractInterceptor:
destroy,   init,   intercept
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.interceptor.StaticParametersInterceptor Detail:
 public String intercept(ActionInvocation invocation) throws Exception 
 public  void setParse(String value)