您应该有一个映射到edititem.htm的控制器。(也许是一个SimpleFormController)
覆盖两个showForm方法之一,以使用以下项填充模型:
protected ModelAndView showForm(HttpServletRequest request, HttpServletResponse response, BindException errors){//get the idint id = Integer.parseInt(request.getParameter("id"));// get the objectItem item = dao.getItemById(id);return new ModelAndView(getFormView(), "item", item);}


