JSP Request Path : Request « JSP « Java






JSP Request Path

<%--
  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.
--%>
<pre>
In ShowPath2.jsp:

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

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

   javax.servlet.include.request_uri =
      <%= request.getAttribute
      ("javax.servlet.include.request_uri") %>

   javax.servlet.include.servlet_path =
      <%= request.getAttribute
      ("javax.servlet.include.servlet_path") %>
</pre>


           
       








JSP-RequestPath.zip( 852 k)

Related examples in the same category

1.JSP: Show Request
2.Get Request Parameter
3.Print the request headers and the session attributes
4.HTTP Request Headers Received
5.Request Parameters Example