@RequestMapping(value = "/produk/form", method = RequestMethod.POST) public String prosesFormProduk( @ModelAttribute @Valid Produk p, BindingResult hasilValidasi, SessionStatus status) throws Exception { p.setTerakhirUpdate(new Date()); if (hasilValidasi.hasErrors()) { return "/produk/form"; } produkDao.simpan(p); status.setComplete(); return "redirect:list"; }