diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-28 11:35:52 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-28 11:35:52 +0000 |
commit | c488c1f0149d970d15ae4ad751ced40aae22c434 (patch) | |
tree | ccfbfd64af72f600ffa218fd636d3dacec3e4362 /java/sca/modules/host-webapp/src | |
parent | 40a64052209feff0baf1a9031d417920b25cfc57 (diff) |
Fix to also work when servlet path doesn't have a nested path
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@680321 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 5fcaa35d8f..f14dfac58b 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 @@ -87,6 +87,9 @@ class WebAppRequestDispatcher implements RequestDispatcher { */ protected String fiddlePath(String path, String servletPath) { StringTokenizer st = new StringTokenizer(path, "/"); + if (st.countTokens() == 1) { + return path; + } String root = ""; while (st.hasMoreTokens()){ String s = st.nextToken(); |