hi
I am having a similar problem . Not sure what I am missing.
I have a multiactioncontroller
Code:
@Override
public void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception{
super.initBinder(request, binder);
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
sdf.setLenient(false);
CustomDateEditor editor = new CustomDateEditor(sdf,false);
binder.registerCustomEditor(Date.class,
editor);
binder.registerCustomEditor(Date.class,
editor);
}
and in my JSP i am using this.
Code:
<form:input path="dynamicPollUrlList[${pRow.index}].publishStartTime" size="20" cssErrorClass="errors" />
I am getting the date. But its not in the format as i desired ( MM/dd/yyyy )
What I see is the complete date ( Fri Sep 26 17:41:11 PDT 2008 )
Any idea what I am missing ?