JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > Interceptors > Component Interceptor
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  Component Interceptor
Added by 黑灵, last edited by scud on May 19, 2006  (view change)
Labels: 
(None)

一个简单的拦截器可以把WebWork的IOC容器ComponentManager应用于执行Action。注意,WebWork的IOC已经废弃掉了,推荐使用其他的解决方案,如Spring。

参数

扩展

例子

<action name="someAction" class="com.examples.SomeAction">
    <interceptor-ref name="componentStack"/>
    <interceptor-ref name="basicStack"/>
    <result name="success">good_result.ftl</result>
</action>
Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators