RE: Form conversion problem String to Date

2006-09-27 Thread Strachan, Paul
you could write a beanutils converter and plugin for struts config e.g. Your plugin class should register converters for each type e.g. Converter converter = new SqlDateConverter(..., sqlDateFormat, sqlDateAllowNull) ConvertUtils.register(converter, java.util.Date.class); etc -

Re: Form conversion problem String to Date

2006-09-27 Thread Chris Pratt
Change your mutator to accept a String and perform the conversion yourself. Then you can check for null or empty string before you start the conversion. (*Chris*) On 9/27/06, Tom Bednarz <[EMAIL PROTECTED]> wrote: I have a form with a date input field. This field is NOT mandatory, this means i