remm 2002/09/05 02:39:16
Modified: jasper2/src/share/org/apache/jasper/compiler Tag:
tomcat_4_branch Generator.java
Log:
- Force the convesion of the value to a string.
- Note: I am not convinced this is a compliance issue (and it looks like bad design
to pass an object or null); this just reverts back the old behavior.
Revision Changes Path
No revision
No revision
1.35.2.6 +4 -4
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.35.2.5
retrieving revision 1.35.2.6
diff -u -r1.35.2.5 -r1.35.2.6
--- Generator.java 28 Aug 2002 20:47:57 -0000 1.35.2.5
+++ Generator.java 5 Sep 2002 09:39:16 -0000 1.35.2.6
@@ -563,7 +563,7 @@
if (attr.isExpression()) {
if (encode) {
- return "java.net.URLEncoder.encode(" + v + ")";
+ return "java.net.URLEncoder.encode(\"\" + " + v + ")";
}
return v;
} else {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>