Author: jholmes
Date: Mon Sep 17 06:57:39 2007
New Revision: 576442

URL: http://svn.apache.org/viewvc?rev=576442&view=rev
Log:
WW-2188 Incompatible API Change in Component.java

Modified:
    
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Component.java

Modified: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Component.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Component.java?rev=576442&r1=576441&r2=576442&view=diff
==============================================================================
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Component.java
 (original)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Component.java
 Mon Sep 17 06:57:39 2007
@@ -323,6 +323,25 @@
         }
     }
 
+       /**
+     * Renders an action URL by consulting the [EMAIL PROTECTED] 
org.apache.struts2.dispatcher.mapper.ActionMapper}.
+     * @param action      the action
+     * @param namespace   the namespace
+     * @param method      the method
+     * @param req         HTTP request
+     * @param res         HTTP response
+     * @param parameters  parameters
+     * @param scheme      http or https
+     * @param includeContext  should the context path be included or not
+     * @param encodeResult    should the url be encoded
+     * @return the action url.
+     */
+    protected String determineActionURL(String action, String namespace, 
String method,
+                                        HttpServletRequest req, 
HttpServletResponse res, Map parameters, String scheme,
+                                        boolean includeContext, boolean 
encodeResult) {
+        return determineActionURL(action, namespace, method, req, res, 
parameters, scheme, includeContext, encodeResult, false, true);
+    }
+
     /**
      * Renders an action URL by consulting the [EMAIL PROTECTED] 
org.apache.struts2.dispatcher.mapper.ActionMapper}.
      * @param action      the action
@@ -334,6 +353,8 @@
      * @param scheme      http or https
      * @param includeContext  should the context path be included or not
      * @param encodeResult    should the url be encoded
+        * @param forceAddSchemeHostAndPort    should the scheme host and port 
be added to the url no matter what
+        * @param escapeAmp    should the ampersands used separate parameters 
be escaped or not
      * @return the action url.
      */
     protected String determineActionURL(String action, String namespace, 
String method,
@@ -341,7 +362,7 @@
                                         boolean includeContext, boolean 
encodeResult, boolean forceAddSchemeHostAndPort,
                                         boolean escapeAmp) {
         String finalAction = findString(action);
-       String finalMethod = method != null ? findString(method) : method;
+        String finalMethod = method != null ? findString(method) : method;
         String finalNamespace = determineNamespace(namespace, getStack(), req);
         ActionMapping mapping = new ActionMapping(finalAction, finalNamespace, 
finalMethod, parameters);
         String uri = actionMapper.getUriFromActionMapping(mapping);


Reply via email to