Author | Message |
---|---|
sjayach
Posts: 9
|
Posted 21:30 Aug 06, 2015 |
Professor, How to bind the Date with spring form? When i try to use form:input type="date", the jsp page is not submitting to the post method and it's displaying 400 error It looks this problem is due to wrong pattern mapping ( java date is in yyyy-mm-dd and form:input type="date" is in mm/dd/yyyy format). so, How to change the pattern in spring input tag. |
neilchoksi
Posts: 29
|
Posted 00:41 Aug 07, 2015 |
same question. Cant pass date with input type= "date". #following |
cysun
Posts: 2935
|
Posted 07:54 Aug 07, 2015 |
Don't use "date" input type. If I'm not mistaken, HTML5 Date Input always submits dates in yyyy-mm-dd format. |