In version 4x and earlier, a jsp:getProperty tag will print a zero length string to the page if the bean's property value is null.
In version 5x it prints the string "null". I don't know if this is a bug or an intentional change but I know it will cause headaches for developers moving existing apps to version 5. The attached patch applies to org.apache.jasper.runtime.JspRuntimeLibrary.java Thank you, Ben Souther
--- JspRuntimeLibrary.java Thu Dec 4 20:51:54 2003 +++ JspRuntimeLibrary.java.fixed Thu Dec 4 20:19:01 2003 @@ -426,6 +426,7 @@ //------------------------------------------------------------------- // __begin toStringMethod public static String toString(Object o) { + if(o == null) return ""; return String.valueOf(o); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]