My proj involves JSP @ front end n MySql @ back end and connectivity is established thru JDBC. The thing is when i store values from the front end into the db i need to change the data types n vice versa.Consider ths.
I m retrieving date from the db thru the result set i m traversing thru each n every record(next() function is used).
String d1 = rs.getString(2) ;System.out.pri ntln("Date="+da te);
How do i convert the date field into a java.sq.Date value such dat it can be retrieved back @ front end? If i directly the variable d1(mentioned above) as java.sql.Date then there is arises compatibility error....
Help me pls..........
I m retrieving date from the db thru the result set i m traversing thru each n every record(next() function is used).
String d1 = rs.getString(2) ;System.out.pri ntln("Date="+da te);
How do i convert the date field into a java.sq.Date value such dat it can be retrieved back @ front end? If i directly the variable d1(mentioned above) as java.sql.Date then there is arises compatibility error....
Help me pls..........
Comment