Commits

cameronbraid  committed 58d55f2

added ServletConfig into the action context, to allow access to ServletContext via ServletActionContext

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@666573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits d29c4e8

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/validators/ValidationServlet.java

 package com.opensymphony.webwork.validators;
 
 import com.opensymphony.util.TextUtils;
+import com.opensymphony.webwork.dispatcher.ServletDispatcher;
 import com.opensymphony.webwork.views.util.TextUtil;
 import com.opensymphony.xwork.*;
 import com.opensymphony.xwork.config.entities.ActionConfig;
             Action a = null;
             HashMap ctx = new HashMap();
             ctx.put(ActionContext.PARAMETERS, params);
+            ctx.put(ServletDispatcher.SERVLET_CONFIG, getServletConfig());
+
             ValidatorActionProxy proxy = new ValidatorActionProxy(namespace, action, ctx);
             proxy.execute();
             a = proxy.getAction();
 
     public static class ValidatorActionProxy extends DefaultActionProxy {
         protected ValidatorActionProxy(String namespace, String actionName, Map extraContext) throws Exception {
-            super(namespace, actionName, extraContext, false);
+            super(namespace, actionName,extraContext,false);
         }
 
         protected void prepare() throws Exception {