When I call HttpServletRequest.setAttribute(name, string) the ASCII content like < of attribute string is converted to <, etc.
What is the workaround so that the content is not converted? I want to display the content in a javascript confirm().
Update:
String is output using <c:out>
setAttribute does not escape content, it just places an object into the Map. Most probably your templating engine does that.