Your form bean should only deal with Strings. Convert the string later -
either with BeanUtils or manually. There have been a number of discussions
about why form beans should only deal with Strings - most reasons having to
do with the issue of invalid input, and the redisplaying thereof.
--
Voy
Since it's a request parameter it will go as a String in the form bean.
So you must have date field as a String in the form bean. Later on you
can convert that to a Date object by using java.text.SimpleDateFormat
class.
Regards
Ritesh
-Original Message-
From: Softwareentwicklung Hauschel
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 th
3 matches
Mail list logo