Register / Login
Win a copy of
The Java Performance Companion
this week in the
Date conversion problem in form bean
posted 7 years ago
I am facing a little issue when trying to save a date.
The input is coming from a standard <html:text..> field but the getter setter methods in the form bean expect a data type Date.
Now when I run the application it gives me an
because it is expecting a
and getting a
I need to save it to a type
because the field in the database is of type Date.
question is// do I typecast the String to date? how and at what point?
Help needed guys!
a bit comfused about java.util.Date and java.sql.Date
struts2 date conversion question
argument type mismatch problem using java.util.Date
what's the difference?