idator/validations.xml
there is a good primer available at
http://jakarta.apache.org/struts/userGuide/dev_validator.html
HTH,
Martin-
- Original Message -
From: "Lance Semmens" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, July 13, 2005 7:17 AM
Subject: Invalid dates / numbers etc
nForm
> 5)setup validation rules in /WEB-INF/validator/validations.xml
> there is a good primer available at
> http://jakarta.apache.org/struts/userGuide/dev_validator.html
>
> HTH,
> Martin-
> - Original Message -
> From: "Lance Semmens" <[EMAIL PROTECT
dnesday, July 13, 2005 7:17 AM
Subject: Invalid dates / numbers etc on forms
Is there a standard way of handling invalid user input in date / number
fields etc. I can forsee 2 possible solutions.
1. Declare date properties on your form as java.lang.Strings and
validate / parse them explicitely.
The recommended pattern is to have only string properties on your
ActionForm classes that are mapped to typed data in your model.
You can write a component to do #2 and register it with bean-utils,
but you for sure do not want to pass the action form into your model.
Larry
On 7/13/05, Lance Sem
Is there a standard way of handling invalid user input in date / number
fields etc. I can forsee 2 possible solutions.
1. Declare date properties on your form as java.lang.Strings and
validate / parse them explicitely.
2. Declare date properties as java.util.Dates, have struts parse dates,
check fo
5 matches
Mail list logo