Thanks Remy, I was just looking at possible fixes. Bad design, maybe. I'll bear it in mind and review my usage.
Regards, Richard... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 10:39 To: [EMAIL PROTECTED] Subject: cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java 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]> ---------------------------------------------------- This email with all information contained herein or attached hereto may contain confidential and/or privileged information intended for the addressee(s) only. If you have received this email in error, please contact the sender and immediately delete this email in its entirety and any attachments thereto. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>