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=6562>.
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=6562

Null values and the StringBuffer

           Summary: Null values and the StringBuffer
           Product: Struts
           Version: 1.0.2 Final
          Platform: All
        OS/Version: AIX
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Several of the custom tags are using the StringBuffer to construct the output 
of the tags. When values are have "" as their value they are translated to null 
values in the tag code and appending null using the StringBuffer returns 'null' 
on older JDKs (Specifically the one that Websphere 4.0.1 is using (jdk1.3.0)). 
These sections of code can be easily repaired by checking to see if the values 
are null and appending on if they are not. ie. from html\OptionTag.java line 
276 of the nightly build: results.append(value) should be replaced with if 
(value != null) { results.append(value) }. Several tags are affected by this.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to