getServletPath() Method Example

Programmer uses getServletPath() method to retrieve the alias name used by client. getServletPath() Method is defined in ServletRequest inherited by HttpServletRequest. This program uses getServletPath() of HttpServletRequest to retrieve the alias name (of <servlet-mapping>) tag. Client uses this alias name to call the Servlet. Following is the method signature. Method is defined in HttpServletRequest interface. …

getServletPath() Method Example Read More »