Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e1659121e4d27895f51de108c37973d6f9865492 1 parent 62858f0
@ghillert ghillert authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 sitemesh/src/main/java/org/sitemesh/webapp/WebAppContext.java
View
8 sitemesh/src/main/java/org/sitemesh/webapp/WebAppContext.java
@@ -79,7 +79,13 @@ public String getPath() {
}
public static String getRequestPath(HttpServletRequest request) {
- String result = request.getServletPath();
+ String result = request.getServletPath();
+ String pathInfo = request.getPathInfo();
+
+ if (pathInfo != null) {
+ result = result + pathInfo;
+ }
+
// getServletPath() returns null unless the mapping corresponds to a servlet
if (result == null) {
String requestURI = request.getRequestURI();
Please sign in to comment.
Something went wrong with that request. Please try again.