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
-
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
2 matches
Mail list logo