I am trying to use the encodeURL method in a jsp to encode a URL with \"%\" symbol.
encodeURL
response.encodeURL(/page1/page2/view.jsp?name=Population of 91% in
The result of your code is :
%2Fpage1%2Fpage2%2Fview.jsp%3Fname%3DPopulation%20of%2091%25%20in%20this%20place
You should encode only the query string value.
... = "/page1/page2/view.jsp?name=" + URLEncoder.encode('Population of 91% in this place');
?