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/03/19 09:20:52 UTC

DO NOT REPLY [Bug 33630] - 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





------- Additional Comments From mrdon@twdata.org  2005-03-19 09:20 -------
I suppose the code could thrown a NumberFormatException and let the user handle
it with declarative exception handling, but that seems awkward to have
validation code in two places.  The recommended approach is to have all the data
types as Strings then validate them as numbers using commons-validator.  This
has the added advantage of providing the user their incorrect input.  Do you
have any other ideas?

-- 
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