why don't you make it a String in the form?  then use the
validator-rules.xml and validator.xml to validate if it is a date or not.
that way, if the person enters a bad date format you can redirect to the
page with the error message as well as populate the bad date into the form
as reference for the person using the application.



-----Original Message-----
From: Softwareentwicklung Hauschel
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:57 AM
To: Struts Users Mailing List
Subject: java.util.date in edit form


Hey all,
i've got an edit form, where i have to input a date.
In my Form.java class the matching properties type is java.util.Date.

But there ist an error submitting the form -> "ServletException:
BeanUtils.populate"

If i delete the date Field, the form/action works ;-(

How can i input a date with struts ?

Fredy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to