Retrieving the Original URI : Request « JSP « Java Tutorial






<%--
  Copyright (c) 2002 by Phil Hanna
  All rights reserved.
  
  You may study, use, modify, and distribute this
  software for any purpose provided that this
  copyright notice appears in all copies.
  
  This software is provided without warranty
  either expressed or implied.
--%>
<html>
<head>
<title>Retrieving the Original URI</title>
</head>
<body>
<pre>
In ShowPath1.jsp:

   request.getRequestURI() =
      <%= request.getRequestURI() %>

   request.getServletPath() =
      <%= request.getServletPath() %>

</pre>
<jsp:include page="ShowPath2.jsp" flush="true"/>
</body>
</html>








23.34.Request
23.34.1.Get HttpServletRequest
23.34.2.Reference Http Servlet Request in Bean
23.34.3.Put Request Header Name and Value to TreeMap
23.34.4.Get Parameter Name and Value from TreeMap
23.34.5.Get Servlet Request
23.34.6.Decoding an HTTP Request
23.34.7.Retrieving the Original URI