A simpler alternative to that approach would be to simply make an
additional setter method in you bean (and getter if appropriate) for
your Date member which takes a String, parses it (preferably according
to the user's Locale) and sets your Date member. The form data should
be first validated, oth
Writing a date converter is pretty simple; the
only reason there isn't one included in the
beanutils distribution is that there's not a very
easy way to configure the date format in a
universal way.
Below is an example. This one is implemented as
a static inner class within the only class wh
Hi,
I'd like know how I can use BeanUtils.copyProperties(form, model),
when I my objects have name equals but types noequals, example, in my
form I have a attribuite named "dateInsert" of type string, but in my
model I have this attribuite of the type java.util.Date. How I
specified to BeanUtils t
3 matches
Mail list logo