URL encoding problem!!
843842Apr 27 2008 — edited Apr 28 2008Hi,
I want to sent some parameter from jsp page to server(Tomcat).My parameters name holding special character and parameter value also holding special character like as follows,
Test_HCT(%) = 35.5
Value_Match = B%152
If the above parameters send from html form tag then i got the parameter in server.But instead of that if i send the request to the server using post method(ajax), server ignores the parameters. I am getting null value when i try to retrieve these parameters using
request.getParameterValues("Test_HCT(%)")
request.getParameterValues("Value_Match")
so i searched with google and found url encoding is the solution. so i used javascript escape() function to encode the url before sending the request to the server.But after encoded request doesn't go to the server.
I am stuck in this issue for 2 weeks.Somebody says do this .....,others says do that.........
So what is the solution for that?
Is this URL encoding issue?
Do i need to decode the url in server if encode the url in javascript?
Please help if you know anything about this.
Regards
Edited by: dadu420 on Apr 27, 2008 12:37 AM