path-info function for getting path from HttpServletRequest