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