commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <Wendy.Sm...@asu.edu>
Subject [VALIDATOR] Validating formatted amounts
Date Fri, 04 Apr 2003 15:16:19 GMT

I have an 'amount' field (text box) on a Struts form, and I need to validate
it.  I'm having some success with:

<field    property="askAmount"
           depends="required,integer,intRange">

but I know my users will want to enter 5,000 or $5,000 or 5000.00 instead of
just 5000.

Suggestions please?  I didn't get any answers from struts-user, so I'm
thinking I need to write a custom validator for this.  

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message