Given that a servlet has been mapped to /account/. Identity the HttpServletRequest methods that will return the /account segment for the URI: /myapp/account/.

Given that a servlet has been mapped to /account/. Identity the HttpServletRequest methods that will return the /account segment for the URI: /myapp/account/.



a. getContextPath
b. getServletPath
c. getPathInfo





Answer: B


Learn More :