struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33630] New: - FormBean support simple type Formats like 'int' and 'long' handled incorrectly
Date Fri, 18 Feb 2005 10:52:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33630>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33630

           Summary: FormBean support simple type Formats like 'int' and
                    'long' handled incorrectly
           Product: Struts
           Version: 1.2.4
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: major
          Priority: P2
         Component: Unknown
        AssignedTo: dev@struts.apache.org
        ReportedBy: Thomas.Hentrich@atosorigin.com


A FormBean containing properties of type 'int' or 'long' are incorrectly parsed
or handled. 

If a jsp page contains a text field mapped to the formbean int property and the
user enters a string (e.g. "AB"), struts tries to convert this value to an int,
fails and then puts in the default value.

This leads to incorrect handling of data. 

Instead, an error or exception should be thrown to indicate that the value is
not of type int or long.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message