Author: jsdelfino
Date: Mon Jul 19 06:11:37 2010
New Revision: 965358

URL: http://svn.apache.org/viewvc?rev=965358&view=rev
Log:
Fix logic to compute the path info as it doesn't work in a webapp.

Modified:
    
tuscany/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java

Modified: 
tuscany/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java?rev=965358&r1=965357&r2=965358&view=diff
==============================================================================
--- 
tuscany/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
 (original)
+++ 
tuscany/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
 Mon Jul 19 06:11:37 2010
@@ -75,7 +75,7 @@ public class HTTPBindingListenerServlet 
     @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.


Reply via email to