\n is within a string...
String str = request.getParameter("textfieldvalue");
I want to display the value of str to other pages..using this link below.
window.open("page.jsp?param=<%=str%>")
....the problem is that the window is not opening due the str has \n.
How to read \n in a string?