`
yaozuodaoforfly
  • 浏览: 119022 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

StaticParametersInterceptor

 
阅读更多

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:

  • None

Extending the interceptor:

There are no extension points to this interceptor.

Example code:

 
 <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>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics