return new Recipe("");
}
}
protected ModelAndView onSubmit(Object command) throws Exception {
Recipe r = (Recipe) command;
recipeManager.saveRecipe(r);
System.out.println("Saving recipe: " + r.getTitle());
RedirectView view = new RedirectView(getSuccessView());
view.addStaticAttribute(RECIPE_ID_ATTRIBUTE, Long.valueOf(recipeManager.getId(r)));
System.out.println("Save recipe successfully. id=" + Long.valueOf(recipeManager.getId(r)));