I wrote Front Controller Pattern and ran the test. Somehow request.getPathInfo() is returning null when it should return the path info.
1. HTML that calls se
@Vivien is correct. You'd like to use HttpServletRequest#getServletPath() instead (sorry, I overlooked that bit while writing the answer which you undoubtely was reading, I've updated the answer).
To clarify: getPathInfo()
does not include servlet path as definied in web.xml
(only the path thereafter) and getServletPath()
basically returns only the servlet path as definied in web.xml
(and thus not the path thereafter). If the url pattern contains a wildcard, particularly that part is included.