commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bobby Lawrence <robe...@jlab.org>
Subject feature request
Date Thu, 06 Oct 2005 14:59:54 GMT
Since so many frameworks (such as Struts) rely heavily on the commons 
packages, I would like to suggest a feature to be added to the 
commons/beanutils/converters classes...
In such cases, like LongConverter, I think that it would be nice to try 
to parse the Object coming in with a NumberFormatter, something like:

try {
  NumberFormat numberFormat = NumberFormat.getInstance();
  Number num = numberFormat.parse(value.toString());
  return new Long(num.longValue());
}
catch (ParseException ex){

}

What does everyone think?

-- 
----------------------------
Bobby Lawrence
MIS Application Developer

Jefferson Lab (www.jlab.org)

 Email: robertl@jlab.org
Office: (757) 269-5818
 Pager: (757) 584-5818
----------------------------





---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message