Skip to content
This repository
Browse code

Sitemesh3 - Issue #29 ServletPath doesn't return full path

  • Loading branch information...
commit e1659121e4d27895f51de108c37973d6f9865492 1 parent 62858f0
Gunnar Hillert authored May 11, 2011
8  sitemesh/src/main/java/org/sitemesh/webapp/WebAppContext.java
@@ -79,7 +79,13 @@ public String getPath() {
79 79
     }
80 80
 
81 81
     public static String getRequestPath(HttpServletRequest request) {
82  
-        String result = request.getServletPath();
  82
+        String result   = request.getServletPath();
  83
+        String pathInfo = request.getPathInfo();
  84
+
  85
+        if (pathInfo != null) {
  86
+        	result = result + pathInfo;
  87
+        }
  88
+        
83 89
         // getServletPath() returns null unless the mapping corresponds to a servlet
84 90
         if (result == null) {
85 91
             String requestURI = request.getRequestURI();

0 notes on commit e165912

Please sign in to comment.
Something went wrong with that request. Please try again.