tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r609265 - /incubator/tuscany/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java
Date Sun, 06 Jan 2008 07:47:09 GMT
Author: antelder
Date: Sat Jan  5 23:47:06 2008
New Revision: 609265

URL: http://svn.apache.org/viewvc?rev=609265&view=rev
Log:
Fix WebAppRequestDispatcher  context path calculation

Modified:
    incubator/tuscany/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java

Modified: incubator/tuscany/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java?rev=609265&r1=609264&r2=609265&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java
(original)
+++ incubator/tuscany/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java
Sat Jan  5 23:47:06 2008
@@ -69,7 +69,12 @@
                 if (path.length() == 0) {
                     path = super.getPathInfo();
                 }
-                path = path.substring(servletPath.length());
+                // TODO: another context path hack, shouldn't hardcode this "tuscany" string
+                if (servletPath.startsWith("/tuscany/")) {
+                    path = path.substring(servletPath.length()-8);
+                } else {
+                    path = path.substring(servletPath.length());
+                }
                 return path;
             }
         };



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message