I am setting notes(String) which contains a mix of special char's, number, alphabets, etc, in a hidden variable notesValue
, and opening a new jsp(nextPage).
var Url='<%=request.getContextPath()%>/nextPage.jsp?notesValue='+document.forms[0].notesValue.value;
var Bars = 'directories=no, location=no,menubar=no,status=no,titlebar=no';
var Options='scrollbar=yes,width=350,height=200,resizable=no';
var Features=Bars+' '+Options;
alert("Url being sent ---> "+Url);
var Win=open(Url,'Doc5',Features);
At nextPage.jsp side, am doing:
String notes = request.getParameter("notesValue");
Here am getting only plain text and all the special characters are gone.
For eg: notesValue which I set was: "New Notes &';>/..."
What I received on nextPage.jsp
is : New Notes\
What's going on ?