表单没有为我使用 spring 的 sql.date 控制器提供价值,以下是我的表单代码
<form:input path="regDateFrom" cssClass="txt-field-date" id="txt_reg_form" readonly="true" />
我的控制器是。
protected ModelAndView processFormSubmission(HttpServletRequest request,
HttpServletResponse response, Object command, BindException errors)
throws Exception {
String param_error = null;
VehicleSearch vehicleSampling = (VehicleSearch) command;
System.out.println(vehicleSampling.getRegDateFrom());
在打印时它给出了 null