JSP URI/URL - How to get the request URI, URL, and Context from a JSP
JSP URI/URL FAQ: How do I get a URI or URL from a JSP (the request URI or request URL)?
I was just working with a JSP, and trying to remember how to get information that can be very helpful inside of a JSP, specifically how to determine the Context, URI, and URL from within a JSP.
To that end, here's the Java source code for a JSP I wrote that will display the Context, URI, and URL for this JSP when it is accessed from a browser: