diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-26 09:09:51 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-26 09:09:51 +0000 |
commit | 8b9b11a03827e2622647ac1cbce9a00f08d3a0a8 (patch) | |
tree | a6646a2b4bd95858ea3029096d23aa358392a6cf /java/sca/modules/host-webapp/src | |
parent | e40410d3e5a1491abda7cec2094e3749614dc84a (diff) |
Update to remove the entire serelet path if the path starts with it so that servelts registered with the Tuscany ServletHost get the correct value. (Not sure i completely understand the rest of the code in that method, does anyone else?)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@829732 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/host-webapp/src')
-rw-r--r-- | java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java b/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java index f14dfac58b..76cce939ad 100644 --- a/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java +++ b/java/sca/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java @@ -86,6 +86,9 @@ class WebAppRequestDispatcher implements RequestDispatcher { * Remove any path suffix thats part of the Servlet context path */ protected String fiddlePath(String path, String servletPath) { + if (path.startsWith(servletPath)) { + return path.substring(servletPath.length()); + } StringTokenizer st = new StringTokenizer(path, "/"); if (st.countTokens() == 1) { return path; |