You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by lu...@apache.org on 2003/10/10 19:40:39 UTC
cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java
luehe 2003/10/10 10:40:39
Modified: jasper2/src/share/org/apache/jasper/compiler Generator.java
Log:
Quote value of 'classid' attribute
Revision Changes Path
1.213 +11 -18 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.212
retrieving revision 1.213
diff -u -r1.212 -r1.213
--- Generator.java 22 Sep 2003 21:01:21 -0000 1.212
+++ Generator.java 10 Oct 2003 17:40:38 -0000 1.213
@@ -1449,9 +1449,8 @@
// IE style plugin
// <OBJECT ...>
// First compose the runtime output string
- String s0 =
- "<OBJECT classid="
- + ctxt.getOptions().getIeClassId()
+ String s0 = "<OBJECT"
+ + makeAttr("classid", ctxt.getOptions().getIeClassId())
+ makeAttr("name", name);
String s1 = "";
@@ -1464,8 +1463,7 @@
s2 = " + \" height=\\\"\" + " + heightStr + " + \"\\\"\"";
}
- String s3 =
- makeAttr("hspace", hspace)
+ String s3 = makeAttr("hspace", hspace)
+ makeAttr("vspace", vspace)
+ makeAttr("align", align)
+ makeAttr("codebase", iepluginurl)
@@ -1483,8 +1481,7 @@
// <PARAM > for java_codebase
if (codebase != null) {
- s0 =
- "<PARAM name=\"java_codebase\""
+ s0 = "<PARAM name=\"java_codebase\""
+ makeAttr("value", codebase)
+ '>';
out.printil("out.write(" + quote(s0) + ");");
@@ -1493,8 +1490,7 @@
// <PARAM > for java_archive
if (archive != null) {
- s0 =
- "<PARAM name=\"java_archive\""
+ s0 = "<PARAM name=\"java_archive\""
+ makeAttr("value", archive)
+ '>';
out.printil("out.write(" + quote(s0) + ");");
@@ -1502,8 +1498,7 @@
}
// <PARAM > for type
- s0 =
- "<PARAM name=\"type\""
+ s0 = "<PARAM name=\"type\""
+ makeAttr(
"value",
"application/x-java-"
@@ -1527,8 +1522,7 @@
*/
out.printil("out.write(" + quote("<COMMENT>") + ");");
out.printil("out.write(\"\\n\");");
- s0 =
- "<EMBED"
+ s0 = "<EMBED"
+ makeAttr(
"type",
"application/x-java-"
@@ -1541,8 +1535,7 @@
// s1 and s2 are the same as before.
- s3 =
- makeAttr("hspace", hspace)
+ s3 = makeAttr("hspace", hspace)
+ makeAttr("vspace", vspace)
+ makeAttr("align", align)
+ makeAttr("pluginspage", nspluginurl)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org