SilverStray
Programmer
Hi,
I have a message string which I wanted to display as a message in the javascript. The message should be displayed as something like:
"Error in allocation.
Pls. contact support."
The following is the code that passes this message to the intended javascript:
String msg="Error in allocation. \\n Pls. contact support."
stringURL = "ResultPage.jsp?message=" + msg;
It works fine in a server using java 1.4.2_04. But in a server using java 1.4.2_06, the message is displayed as follows:
"Error in allocation. /n Pls. contact support."
Is there an issue for formatting with different java versions??
Pls. help enlighten me.
thanks in advance!
I have a message string which I wanted to display as a message in the javascript. The message should be displayed as something like:
"Error in allocation.
Pls. contact support."
The following is the code that passes this message to the intended javascript:
String msg="Error in allocation. \\n Pls. contact support."
stringURL = "ResultPage.jsp?message=" + msg;
It works fine in a server using java 1.4.2_04. But in a server using java 1.4.2_06, the message is displayed as follows:
"Error in allocation. /n Pls. contact support."
Is there an issue for formatting with different java versions??
Pls. help enlighten me.
thanks in advance!