> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 16, 2004 3:11 PM
> To: [EMAIL PROTECTED]
> Subject: String with digits to Long, verse String w/ digits and commas
> to Long
> 
> 
> I have a form field that I want to be a number in the DB, but 
> the user can add digits, or digits with commas into.
> So 1000 is the same at 1,000 on the ui.
> 
> My question is, will struts convert "1,000" to 1000L just as 
> it will convert "1000" to 1000L?

Struts won't.  NumberFormat will.  Take the field as a String and then parse it 
with either Numberformat or DecimalFormat into long.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to