A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Date conversion problem in form bean
Joined: Sep 11, 2006
Oct 17, 2008 01:24:00
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!
I agree. Here's the link:
subject: Date conversion problem in form bean
what's the difference?
a bit comfused about java.util.Date and java.sql.Date
argument type mismatch problem using java.util.Date
struts2 date conversion question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014