Hi,
I have completely changed the view layer in spring roo application.
I am trying to use HTML5 tags instead of jspx.
When I try to get date using html5 date tag, the date is not getting inserted into the database.
Have a look at the controller that handles the request.Code:<input type="date" id="birthday" name="dateofbirth" size="20" />
Code:@RequestMapping(method = RequestMethod.POST) public String create(@Valid Myclass myclass, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) { if (bindingResult.hasErrors()) { System.out.println("Value of date: +myclass.getDateofbirth()); uiModel.addAttribute("myclass", myclass); return "/WEB-INF/JSP/create.jsp"; }
The output i am getting here is;
Code:Value of date: null
Can anybody help?
Thanks in advance
Privin Thomas


Reply With Quote