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
<font color="red">The requested URI is: <%= request.getRequestURI() %></font>
Output will be displayed as:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: February 3, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles