The moose likes JSP and the fly likes URL Encoding at client side Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "URL Encoding at client side" Watch "URL Encoding at client side" New topic
Author

URL Encoding at client side

sweety soni
Greenhorn

Joined: Mar 16, 2010
Posts: 9
i am facing problem in getting values from server via query string......at server side no encoding has been done for special characters and hence when i receive data by req.getparameter i dont get the complete value of the filed rather i get value till special character i.e if field value is S&S on server then at client i get only S....

My question is ..is it possible at client side to get the complete data even if there is no special encoding done at server side for special characters..
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48842

The URL must be properly encoded, otherwise there's no way to tell what's data and what are delimiters.

By the way, there is no such method as getparameter -- it's getParameter.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
sweety soni
Greenhorn

Joined: Mar 16, 2010
Posts: 9
Thanks for yor reply.....and yea there is no such method getparameter....jus did not take care while typing...kind of typo error ;)
sweety soni
Greenhorn

Joined: Mar 16, 2010
Posts: 9
One more question is this getParameter which is causing loos of data (special character)...can we get data (value with special character) without encoding at server by using somthing else instead of using getParameter ...if yes what is that we can use?
 
 
subject: URL Encoding at client side
 
MyEclipse, The Clear Choice