Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Christopher Marsh-Bourdon
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

Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Larry Meadors
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

Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Martin Gainty
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.

Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Larry Meadors
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

Invalid dates / numbers etc on forms

2005-07-13 Thread Lance Semmens
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