You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/02/18 11:52:26 UTC

DO NOT REPLY [Bug 33630] New: - FormBean support simple type Formats like 'int' and 'long' handled incorrectly

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