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

RequestUtils.populate() convert null or empty parameter to 0 integer

           Summary: RequestUtils.populate() convert null or empty parameter
                    to 0 integer
           Product: Struts
           Version: 1.1 Beta 1
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


this problem has appeared in 1.1 beta1 (there wasn't it in 20020313 snapshot):
when populating null or empty request parameter to form field of type Integer, 
it's always set to Integer(0) - in previous releases it was correctly set to 
NULL. This is a part of action:

// name form has set/getIntTest methods setting private Integer _intTest
form = new IntTestForm(); // here getIntTest() returns null
request.setAttribute("intTest", null);
org.apache.struts.util.RequestUtils.populate(form, request);
// here getIntTest() returns 0

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

Reply via email to