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

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









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
How can I get IBM certification for free?
How can I get into big data?
How can I get specific data from JSON
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
How can I get specific data from JSON
how to get request url in node js
how to get request url in node js
how do i grab the url in php?
How to get the full path location using <input type=file>
ModuleNotFoundError: No module named 'django-full-url'
ModuleNotFoundError: No module named 'django-full-url'
How can I get experience in data science if no one would hire me?
Can I get a job with just python?
Can I learn Python at 45 and get a job?
How to get full path of the uploaded file using commons fileupload jar file
I am getting error.How can i get details
How can I do it? .click();
java how to get domain name from url
How can I learn Java?
how i do url encoding process - JSP-Servlet
how should i can solve
How to Get Referer URL Servlet
there are class A & class B.How can i get members of class A& B?
How do I get started with Bootstrap
How do I get started with Bootstrap
How do I get a job in AI field?
How do I get a job in AI?
how to sort the elements of hashmap and to print output the key and the value attached to it
How can i use Facebook connect button
how can i display a pdf file in a jtextarea
how can i add hibernate plugin to eclipse?
Can I get a job with Google IT support professional certificate?
Where can I get best Data science training with project work?
how can i remove newline characters and tabs
how can i make monthly register ?
how can i display a editable result of form?
how can i create a discussion forum?
How can I learn Java in 5 minutes
How can I to my database to my application
How can i modify my account in roseindia
How can I protect my database password ?
How can I master Java in one month?
how can i print the selected content of a frame
how can i close a frame. - Java Beginners
How can I create sessionfactory in Hibernate?

Ads