How can I get the full URL with the attached parameters?

Ads
 

How can I get the full URL with the attached parameters?

View Answers

March 27, 2009 at 1:12 AM

Hi Friend,

You can try the following code to solve your problem. Here we can use combination of getRequestURL() method and getQueryString() method to achieve requirement.


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>

<%
String str=request.getRequestURL()+"?"+request.getQueryString();
%>
</body>
</html>

Thanks
RoseIndia Team

Ads









Related Tutorials/Questions & Answers:
How can I get the full URL with the attached parameters? - JSP-Servlet
how i can get jqfade.js library
Advertisements
If Sessin Contain Array how can i get each value.
How can I get query string values in JavaScript?
How Can I get ArrayList of Data from jsp with ajax request
how can i get output pls urget tell me
java how to get domain name from url
how do i grab the url in php?
How to get the full path location using <input type=file>
How can I do it? .click();
How to get full path of the uploaded file using commons fileupload jar file
How can I learn Java?
how should i can solve
I am getting error.How can i get details
How to Get Referer URL Servlet
how i do url encoding process - JSP-Servlet
how can i add hibernate plugin to eclipse?
How can i use Facebook connect button
there are class A & class B.How can i get members of class A& B?
Java Servlet : Get URL Example
how can i make monthly register ?
how can i remove newline characters and tabs
how can i create a discussion forum?
How can I to my database to my application
How can we get hibernate statistics?
how can i display a editable result of form?
how can i display a pdf file in a jtextarea
How can I protect my database password ?
How can i modify my account in roseindia
How can I create sessionfactory in Hibernate?
how can i close a frame. - Java Beginners

Ads