Commits

Anonymous committed 524d2d5

use static from the component interceptor

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@319e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 15c62c4

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/ActionChainResult.java

  */
 package com.opensymphony.xwork;
 
+import com.opensymphony.xwork.interceptor.component.ComponentInterceptor;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
  * A special kind of view that invokes GenericDispatch (using the previously existing
  * ActionContext) and executes another action. This view takes one required parameter:
  * <ul>
- *  <li><b>actionName</b> - the name of the action that will be chained to</li>
+ * <li><b>actionName</b> - the name of the action that will be chained to</li>
  * </ul>
  *
  * @author $Author$
     /**
      * sets the namespace of the Action that we're chaining to.  if namespace
      * is null, this defaults to the current namespace.
+     *
      * @param namespace the name of the namespace we're chaining to
      */
     public void setNamespace(String namespace) {
         HashMap extraContext = new HashMap();
         extraContext.put(ActionContext.VALUE_STACK, ActionContext.getContext().getValueStack());
         extraContext.put(ActionContext.PARAMETERS, ActionContext.getContext().getParameters());
-        extraContext.put("com.opensymphony.xwork.interceptor.component.ComponentManager", ActionContext.getContext().get("com.opensymphony.xwork.interceptor.component.ComponentManager"));
+        extraContext.put(ComponentInterceptor.COMPONENT_MANAGER, ActionContext.getContext().get(ComponentInterceptor.COMPONENT_MANAGER));
         extraContext.put(CHAIN_HISTORY, ActionContext.getContext().get(CHAIN_HISTORY));
 
         if (log.isDebugEnabled()) {