Take a look at FormDef https://formdef.dev.java.net
Hubert On Thu, 16 Dec 2004 16:36:49 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > That's what we are doing already, I just didn't know if there was a feature > in Struts/BeanUtils that would do it for us. > > -------------------- > Mick Knutson > Wells Fargo Business Direct > (415) 222-1020 > > "This message may contain confidential and/or privileged information. If you > are not the addressee or authorized to receive this for the addressee, you > must not use, copy, disclose, or take any action based on this message or any > information herein. If you have received this message in error, please advise > the sender immediately by reply e-mail and delete this message. Thank you for > your cooperation." > -------------------- > > -----Original Message----- > From: Jim Barrows [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 16, 2004 2:17 PM > To: Struts Users Mailing List > Subject: RE: String with digits to Long, verse String w/ digits and > commas to Long > > > -----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] > > --------------------------------------------------------------------- > 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]