插入数据库类型为Date的方法
控制端用的是webwork,表单类型text 传入后用string接受日期字符,然后做一次转化,成为java.sql.date
然后就可以插入类型是Date的oracle字段了
代码:
stmt.setDate(6, beginDate_date);
?