About Question enthuware.jwpv6.2.1005 :
Posted: Mon Jan 14, 2013 3:18 pm
in the explanation Request URI is given as following:
Request URI = protocol://host:port + contextpath + requestpath + pathinfo
Section 3.5 of servlet 3.0 specs say following:
requestURI = contextPath + servletPath + pathInfo
also i tried printing the output of getRequestURI() and getRequestURL() and indeed request uri does not include the protocol and port etc.
Request URI = protocol://host:port + contextpath + requestpath + pathinfo
Section 3.5 of servlet 3.0 specs say following:
requestURI = contextPath + servletPath + pathInfo
also i tried printing the output of getRequestURI() and getRequestURL() and indeed request uri does not include the protocol and port etc.