I want to find the extra path information of a servlet. But this information is different coded depending of the url-pattern that a customer is using. In the follow samples I want differ between case (2) and (3). Is this possible?
url-pattern: /pattern/*
===================
(1) http://localhost/context/pattern/path
ContextPath: /context
ServletPath: /pattern
PathInfo: /path
(2) http://localhost/context/pattern
ContextPath: /context
ServletPath: /pattern
PathInfo: null
url-pattern: /
===================
(3) http://localhost/context/path
ContextPath: /context
ServletPath: /path
PathInfo: null
(4) http://localhost/context/
ContextPath: /context
ServletPath: /
PathInfo: null
url-pattern: /*
===================
(5) http://localhost/context/path
ContextPath: /context
ServletPath:
PathInfo: /path
(6) http://localhost/context/
ContextPath: /context
ServletPath:
PathInfo: /