I've got a Servlet that generates a XML string (relatively long) which I then pass to a Javascript variable in the forwarded JSP file:
$(document).ready(function() {
...
var itXML = <% out.print((String) request.getAttribute("xml")); %>;
...
}
This seems to work just fine in Firefox, but when I run the same project on IE8 I get a syntax error for this line.
Any Ideas?