PDA

View Full Version : Resolved ampersand


BubikolRamios
08-29-2009, 05:29 PM
ajax call ......

doAjaxRequest("catch.jsp?p3="
||something||http://galerija.foto-narava.com/thumbnails.php?album=lastupby&uid=90586|
.....


String p3 = request.getParameter("p3");

the problem is that p3 comes out to short,
only: "||something||[url]http://galerija.foto-narava.com/thumbnails.php?album=lastupby"
coz of red part.

Tryed to replace wih & ....nothing helps

How to sort this out ?

except of course replacing thing with my own cobination of some characters on client side .

edit: have to use encodeURIComponent on client side.