coliver 2003/05/03 20:26:46
Modified: src/scratchpad/src/org/apache/cocoon/generation JXTemplateGenerator.java Log: Fixed boolean handling Revision Changes Path 1.5 +4 -0 cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JXTemplateGenerator.java Index: JXTemplateGenerator.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JXTemplateGenerator.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- JXTemplateGenerator.java 3 May 2003 20:36:12 -0000 1.4 +++ JXTemplateGenerator.java 4 May 2003 03:26:46 -0000 1.5 @@ -2188,6 +2188,8 @@ boolean result = false; if (val instanceof Boolean) { result = ((Boolean)val).booleanValue(); + } else { + result = (val != null); } if (!result) { ev = startIf.endIf.next; @@ -2307,6 +2309,8 @@ boolean result = false; if (val instanceof Boolean) { result = ((Boolean)val).booleanValue(); + } else { + result = (val != null); } if (result) { execute(consumer,