tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kin...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java
Date Wed, 10 Sep 2003 23:11:56 GMT
kinman      2003/09/10 16:11:56

  Modified:    jasper2/src/share/org/apache/jasper/compiler Generator.java
  Log:
  - Use out.print(expr) instead of out.write(String.valueOf(expr)) for outputting
    expressions in template texts.
  
  Revision  Changes    Path
  1.206     +4 -5      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.205
  retrieving revision 1.206
  diff -u -r1.205 -r1.206
  --- Generator.java	9 Sep 2003 21:46:22 -0000	1.205
  +++ Generator.java	10 Sep 2003 23:11:56 -0000	1.206
  @@ -869,8 +869,7 @@
   
           public void visit(Node.Expression n) throws JasperException {
               n.setBeginJavaLine(out.getJavaLine());
  -            out.printil(
  -                "out.write(String.valueOf(" + new String(n.getText()) + "));");
  +            out.printil("out.print(" + n.getText() + ");");
               n.setEndJavaLine(out.getJavaLine());
           }
   
  
  
  

Mime
View raw message