luehe 2002/07/16 13:40:11 Modified: jasper2/src/share/org/apache/jasper/compiler Generator.java Log: Convert expression to String (using String.valueOf(Object)), so they can be printed using Writer.write(String). Revision Changes Path 1.37 +5 -4 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java Index: Generator.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- Generator.java 16 Jul 2002 19:30:51 -0000 1.36 +++ Generator.java 16 Jul 2002 20:40:11 -0000 1.37 @@ -810,7 +810,8 @@ public void visit(Node.Expression n) throws JasperException { n.setBeginJavaLine(out.getJavaLine()); - out.printil("out.write(" + new String(n.getText()) + ");"); + out.printil("out.write(String.valueOf(" + + new String(n.getText()) + "));"); n.setEndJavaLine(out.getJavaLine()); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>