Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46909
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 9 Apr 2009 11:46:13 +0000 (11:46 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 9 Apr 2009 11:46:13 +0000 (11:46 +0000)
The ';' should really only be used if there is a following parameter

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@763611 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/Generator.java

index 7764270..fb58986 100644 (file)
@@ -1574,8 +1574,7 @@ class Generator {
             s0 = "<param name=\"type\""
                     + makeAttr("value", "application/x-java-"
                             + type
-                            + ";"
-                            + ((jreversion == null) ? "" : "version="
+                            + ((jreversion == null) ? "" : ";version="
                                     + jreversion)) + '>';
             out.printil("out.write(" + quote(s0) + ");");
             out.printil("out.write(\"\\n\");");
@@ -1594,8 +1593,7 @@ class Generator {
             s0 = "<EMBED"
                     + makeAttr("type", "application/x-java-"
                             + type
-                            + ";"
-                            + ((jreversion == null) ? "" : "version="
+                            + ((jreversion == null) ? "" : ";version="
                                     + jreversion)) + makeAttr("name", name);
 
             // s1 and s2 are the same as before.