From affdb7768d1142b08d34177f167894a826563f60 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 19 Jul 2010 06:11:37 +0000 Subject: Fix logic to compute the path info as it doesn't work in a webapp. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@965358 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sandbox/sebastien') diff --git a/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java b/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java index 0fe13337ef..0b49ed09e5 100644 --- a/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java +++ b/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java @@ -75,7 +75,7 @@ public class HTTPBindingListenerServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Get the request path - String path = URLDecoder.decode(request.getRequestURI().substring(request.getServletPath().length()), "UTF-8"); + String path = URLDecoder.decode(request.getPathInfo(), "UTF-8"); if (path.length() ==0) { // Redirect to a URL ending with / to make relative hrefs work // relative to the served resource. -- cgit v1.2.3