i success encode & decode the url parameter but how can i get the parameter after decode?? the reason i encode all query strings into a parameter just to prevent user change the parameter on the address bar.
For example
Page A
function fnlink()
{
param1 = encodeURIComponent("INSCODE=91&NAME=LEE&EMAIL=abc");
url = "/home/test/test2.jsp?"+param1;
location.href= url;
}
Page B
url : http://localhost:9080/home/test/test2.jsp?INSCODE%3D91%26NAME%3DLEE%26EMAIL%3Dabc
URL.getQueryto extract the query part and then useString.splitto get the individual parts into a map. Then use the map's methods to check & get values for specific parameters.getParameterof request object returns the parameter you're looking already decoded. Not clear what's your problem.getParameteris a method that the OP wished existed.request.getRequestURL() + "?" + request.getQueryString().. Note the question mark.