Removed HTTP PUT method - it is not supported in JSP 2.3

This commit is contained in:
Tomas Repel 2015-10-02 11:33:57 +02:00
parent e0be3a39b6
commit f7498c79df
5 changed files with 4 additions and 29 deletions

View file

@ -116,7 +116,7 @@ public class OwnerController {
return "owners/createOrUpdateOwnerForm";
}
@RequestMapping(value = "/owners/{ownerId}/edit", method = RequestMethod.PUT)
@RequestMapping(value = "/owners/{ownerId}/edit", method = RequestMethod.POST)
public String processUpdateOwnerForm(@Valid Owner owner, BindingResult result, SessionStatus status) {
if (result.hasErrors()) {
return "owners/createOrUpdateOwnerForm";

View file

@ -91,7 +91,7 @@ public class PetController {
return "pets/createOrUpdatePetForm";
}
@RequestMapping(value = "/owners/{ownerId}/pets/{petId}/edit", method = {RequestMethod.PUT, RequestMethod.POST})
@RequestMapping(value = "/owners/{ownerId}/pets/{petId}/edit", method = RequestMethod.POST)
public String processUpdateForm(@Valid Pet pet, BindingResult result, SessionStatus status) {
if (result.hasErrors()) {
return "pets/createOrUpdatePetForm";