You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/03/20 12:15:53 UTC

DO NOT REPLY [Bug 18180] New: - Jasper getProperty violates spec.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18180>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18180

Jasper getProperty violates spec.

           Summary: Jasper getProperty violates spec.
           Product: Tomcat 4
           Version: 4.1.24
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: morten@kikobu.com


The implementation of jsp:getProperty outputs "" rather than "null"
when the get method returns null. This is due to the JspRuntimeLibrary
toString(Object) implementation:

public static String toString(Object o) {
  return (o == null) ? "" : o.toString();
}

The equivalent implementation in jasper2 that is contained in the Tomcat 5 
source (which yields the expected output):

public static String toString(Object o) {
  return String.valueOf(o);
}

If it weren't for Tomcats status as being the reference implementation
one could argue bug vs. feature..

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org