Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public String processTaco(Taco taco,
@PostMapping
public String processTaco(
@Valid Taco taco, Errors errors,
@ModelAttribute TacoOrder tacoOrder) {
@ModelAttribute("tacoOrder") TacoOrder tacoOrder) {

if (errors.hasErrors()) {
return "design";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public String processOrder(TacoOrder order,
*/

@PostMapping
public String processOrder(@Valid TacoOrder order, Errors errors,
public String processOrder(@Valid @ModelAttribute("tacoOrder") TacoOrder order, Errors errors,
SessionStatus sessionStatus) {
if (errors.hasErrors()) {
return "orderForm";
Expand Down