diff --git a/EventDetails/WebContent/WEB-INF/insertMonth.jsp b/EventDetails/WebContent/WEB-INF/insertMonth.jsp index 2eae861..c164703 100644 --- a/EventDetails/WebContent/WEB-INF/insertMonth.jsp +++ b/EventDetails/WebContent/WEB-INF/insertMonth.jsp @@ -11,7 +11,7 @@

Spring's form select, option, options example

- + @@ -37,4 +37,4 @@
- \ No newline at end of file + diff --git a/EventDetails/src/org/crce/interns/controller/EventController.java b/EventDetails/src/org/crce/interns/controller/EventController.java index c2a3c95..4ff9b4f 100644 --- a/EventDetails/src/org/crce/interns/controller/EventController.java +++ b/EventDetails/src/org/crce/interns/controller/EventController.java @@ -30,17 +30,14 @@ public ModelAndView welcome() { } @RequestMapping("/InsertMonth") - public ModelAndView createUserWelcome(@ModelAttribute("command") Event_detailsBean edBean, BindingResult result) { + public ModelAndView createUserWelcome(@ModelAttribute("command") Event_detailsBean edBean) { return new ModelAndView("insertMonth"); } @RequestMapping(value = "/SubmitMonth", method = RequestMethod.POST) - public ModelAndView createUser(@RequestParam("month") Integer month, BindingResult bindingResult) { - - if (bindingResult.hasErrors()) { - System.out.println("Binding Errors are present..."); - return new ModelAndView("redirect:/ViewEvents"); - } + public ModelAndView createUser(@RequestParam("month") Integer month) { + + // get n stored month in month variable System.out.println(month); @@ -91,4 +88,4 @@ private void initModelList(Model model) { } */ -} \ No newline at end of file +}