Commits

Anonymous committed 47352b2

when building action URLs, use all the same options

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

Comments (0)

Files changed (2)

src/java/com/opensymphony/webwork/components/Component.java

      * Renders an action URL by consulting the {@link com.opensymphony.webwork.dispatcher.mapper.ActionMapper}.
      */
     protected String determineActionURL(String action, String namespace, String method,
-                                      HttpServletRequest req, HttpServletResponse res, Map parameters) {
+                                        HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme,
+                                        boolean includeContext, boolean encodeResult) {
         String finalAction = findString(action);
         String finalNamespace = determineNamespace(namespace, getStack(), req);
         ActionMapping mapping = new ActionMapping(finalAction, finalNamespace, method, parameters);
         ActionMapper mapper = ActionMapperFactory.getMapper();
         String uri = mapper.getUriFromActionMapping(mapping);
-        return UrlHelper.buildUrl(uri, req, res, parameters);
+        return UrlHelper.buildUrl(uri, req, res, parameters, scheme, includeContext, encodeResult);
     }
 
     /**

src/java/com/opensymphony/webwork/components/URL.java

 
         String result;
         if (value == null && action != null) {
-            result = determineActionURL(action, namespace, method, req, res, parameters);
+            result = determineActionURL(action, namespace, method, req, res, parameters, scheme, includeContext, encode);
         } else {
             result = UrlHelper.buildUrl(value, req, res, parameters, scheme, includeContext, encode);
         }