https://issues.apache.org/bugzilla/show_bug.cgi?id=54011
Priority: P2 Bug ID: 54011 Assignee: dev@tomcat.apache.org Summary: Code generation error in jstl tagPlugin "Out" when has "escapeXml" on the tag Severity: normal Classification: Unclassified Reporter: xs...@ebay.com Hardware: PC Status: NEW Version: trunk Component: Jasper Product: Tomcat 7 Created attachment 29482 --> https://issues.apache.org/bugzilla/attachment.cgi?id=29482&action=edit Patch for org.apache.jasper.tagplugins.jstl.core.Out.java When setting up org.apache.jasper.tagplugins.jstl.core.Out as a tagplugin and trying to make code generation for the following code, <c:out escapeXml="false" value="test"/> It will generate an error. It has a typo in it if(hasEscapeXml){ ctxt.generateJavaSource(strEscapeXmlName + " = Boolean.parseBoolean(("); ctxt.generateAttribute("default"); ctxt.generateJavaSource(").toString());"); } The attribute name should be "escapeXml". Even change the right name, it occurs an error because of "(false).toString()". Attached two patchs for this bug fix and code simplified. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org