My
Struts MessageResource.properties file has the following key, where i wanted to insert a carriage return after the message.
error.duplicate=Duplicate record found.\n
But in the output of the
jsp file, the message is displayed with the '\n' instead of the carriage return expected.
Output:
Duplicate record found.\n
How do i properly insert this escape character?