Anonymous avatar Anonymous committed 524d2d5

use static from the component interceptor

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

Comments (0)

Files changed (1)

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()) {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.