Could you use a DecimalFormat to parse it? It has several different parsing methods, not all of which throw exceptions. For example:
http://java.sun.com/j2se/1.3/docs/api/java/text/DecimalFormat.html#parse(jav a.lang.String,%20java.text.ParsePosition) Returns null to indicate an error. > -----Original Message----- > From: Karr, David [mailto:[EMAIL PROTECTED] > > I would point out a couple things about this issue, however. If you > inspect the code in "Double.parseDouble()" and "Long.parseLong()", it > becomes clear that a complete implementation of this is not trivial. > Also note that the "commons-lang" project apparently addresses some of > this, but I don't how well it avoids exceptions for normal processing. > > > -----Original Message----- > > From: David Graham [mailto:[EMAIL PROTECTED] > > > > Put your function in the compare tag code. Submit a patch > in cvs diff > -u > > format to the bug report you opened. > > > > David > > > > >From: [EMAIL PROTECTED] > > > > > >I created bug > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18583 > > > > > >If I coded a fix would that be useful? > > > > > >What should my expectations around getting a fix validated and > commited > > be? > > > > > >Given that a fix would involve some utility type functionality > > >(isLong,isDouble)), > > >is there a place where that should go (org.apache.struts.util)? > > > > > >Or should I just shove it in the Compare class file? > > > > > >Or is there a related project this should go in? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
