In 2011 there should no longer be any Java code in a JSP. JSP 2 was introduced almost 10 years ago and the JSTL and EL should be used in place of Java code.
Using out.println() in a Java script let is an especially horrible practice. The whole point of a JSP is to serve as an HTML template. Building HTML inside a Java string, inside a scriptlet, inside a JSP is simply awful -- even for JSP 1 code.