kinman      2005/02/07 16:23:58

  Modified:    jasper2/src/share/org/apache/jasper/compiler Generator.java
  Log:
  - Samp for a <jsp:element> should not include its body.
  
  Revision  Changes    Path
  1.238     +3 -2      
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.237
  retrieving revision 1.238
  diff -u -r1.237 -r1.238
  --- Generator.java    9 Sep 2004 14:26:53 -0000       1.237
  +++ Generator.java    8 Feb 2005 00:23:58 -0000       1.238
  @@ -1825,6 +1825,9 @@
                   out.print((String)map.get(attrName));
               }
   
  +            // Smap should not include the body
  +            n.setEndJavaLine(out.getJavaLine());
  +
               // Does the <jsp:element> have nested tags other than
               // <jsp:attribute>
               boolean hasBody = false;
  @@ -1851,8 +1854,6 @@
               } else {
                   out.println(" + \"/>\");");
               }
  -
  -            n.setEndJavaLine(out.getJavaLine());
           }
   
           public void visit(Node.TemplateText n) throws JasperException {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to