RE: Form conversion problem String to Date

2006-09-27 Thread Strachan, Paul
-Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED] Sent: Thursday, 28 September 2006 3:13 AM To: Struts Users Mailing List Subject: Form conversion problem String to Date I have a form with a date input field. This field is NOT mandatory, this means it can contain a value or be

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

Form conversion problem String to Date

2006-09-27 Thread Tom Bednarz
I have a form with a date input field. This field is NOT mandatory, this means it can contain a value or be empty. Whenever the user does NOT fill in this datefield I get the following exception: javax.servlet.ServletException: BeanUtils.populate org.apache.struts.util.RequestUtils.populate(R