Home Jsp JSP Request URI



JSP Request URI
Posted on: February 3, 2009 at 12:00 AM
JSP Request URI is used to return the URI of the current page in jsp. The method request.getRequestURI( ) return you the request object that will return the URI of the current JSP page.

JSP Request URI

        

JSP Request URI is used to return the URI of the current page in jsp. The method request.getRequestURI( ) return you the request object that will return the URI of the current JSP page.

Understand with Example

The Tutorial grasp the example from JSP Request URI. To understand the example we create a requestURI.jsp that include the expression  request.getRequestURI ( ) method, which return the URI of the request object in the current JSP page  and inserted into the output.

 

 

Here is the code of requestUrl.jsp

<html>
<body>
<h2>Requested URI</h2>
<font color="red">The requested URI is: <%= request.getRequestURI() %></font>
</body>
</html>

Output will be displayed as:

Download Source Code:

 

Related Tags for JSP Request URI:
cjspobjectmethodsedgetrequestpageurireturnjstoeilusecurrentinmnttrjesagemeobjsurnspatquestishallssrirenthsthatjeo


More Tutorials from this section

Ask Questions?    Discuss: JSP Request URI   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.