From dd03e271967eaacd0272cf461274a6aa0bc5b8eb Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 8 Dec 2006 02:34:01 +0000 Subject: [PATCH] Port fix for bug 41074. Make jsp:plugin output XHTML compliant git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@483787 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/jasper/compiler/Generator.java | 36 +++++++++++++------------- webapps/docs/changelog.xml | 7 +++++ 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index adf32526b..dc2a77422 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -1385,9 +1385,9 @@ class Generator { // Double check that this is now the correct behavior. if (ie) { // We want something of the form - // out.println( "" ); - out.printil("out.write( \" + // // First compose the runtime output string - String s0 = " for java_code - s0 = "'; + // for java_code + s0 = "'; out.printil("out.write(" + quote(s0) + ");"); out.printil("out.write(\"\\n\");"); - // for java_codebase + // for java_codebase if (codebase != null) { - s0 = "'; out.printil("out.write(" + quote(s0) + ");"); out.printil("out.write(\"\\n\");"); } - // for java_archive + // for java_archive if (archive != null) { - s0 = "'; out.printil("out.write(" + quote(s0) + ");"); out.printil("out.write(\"\\n\");"); } - // for type - s0 = " for type + s0 = " for each in the plugin body + * generate a for each in the plugin body */ if (n.getBody() != null) n.getBody().visit(new ParamVisitor(true)); @@ -1534,7 +1534,7 @@ class Generator { /* * Netscape style plugin part */ - out.printil("out.write(" + quote("") + ");"); + out.printil("out.write(" + quote("") + ");"); out.printil("out.write(\"\\n\");"); s0 = "") + ");"); out.printil("out.write(\"\\n\");"); - out.printil("out.write(" + quote("") + ");"); + out.printil("out.write(" + quote("<noembed>") + ");"); out.printil("out.write(\"\\n\");"); /* @@ -1574,13 +1574,13 @@ class Generator { out.printil("out.write(\"\\n\");"); } - out.printil("out.write(" + quote("") + ");"); + out.printil("out.write(" + quote("") + ");"); out.printil("out.write(\"\\n\");"); - out.printil("out.write(" + quote("") + ");"); + out.printil("out.write(" + quote("") + ");"); out.printil("out.write(\"\\n\");"); - out.printil("out.write(" + quote("") + ");"); + out.printil("out.write(" + quote("") + ");"); out.printil("out.write(\"\\n\");"); n.setEndJavaLine(out.getJavaLine()); diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 14a2d11f1..62951cebe 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -23,6 +23,13 @@ + + + + 41057: Make jsp:plugin output XHTML compliant. (markt) + + +
-- 2.11.0