Page 1 of 1

About Question enthuware.jwpv6.2.1005 :

Posted: Mon Jan 14, 2013 3:18 pm
by gurpreet_asrgndu
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.

Re: About Question enthuware.jwpv6.2.1005 :

Posted: Thu Jan 17, 2013 8:34 pm
by admin
You are right. It is actually Request URL.

This has now been updated.
Thank you for your feedback!