From cf4cce751be208e2920c0e89b07da7dfdcf24fc2 Mon Sep 17 00:00:00 2001 From: David Morley Date: Thu, 3 Mar 2016 06:20:44 -0600 Subject: [PATCH] Clean up Spring MVC Form Tag Library example --- spring-mvc-xml/pom.xml | 2 +- .../java/{org => com}/baeldung/spring/ClientWebConfig.java | 2 +- .../{org => com}/baeldung/spring/ClientWebConfigJava.java | 2 +- .../baeldung/spring/controller/EmployeeController.java | 4 ++-- .../baeldung/spring/controller/PersonController.java | 6 +++--- .../java/{org => com}/baeldung/spring/form/Employee.java | 2 +- .../main/java/{org => com}/baeldung/spring/form/Person.java | 2 +- .../baeldung/spring/validator/PersonValidator.java | 4 ++-- spring-mvc-xml/src/main/resources/webMvcConfig.xml | 2 +- spring-mvc-xml/src/main/webapp/WEB-INF/view/personForm.jsp | 2 +- spring-mvc-xml/src/main/webapp/WEB-INF/web.xml | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) rename spring-mvc-xml/src/main/java/{org => com}/baeldung/spring/ClientWebConfig.java (93%) rename spring-mvc-xml/src/main/java/{org => com}/baeldung/spring/ClientWebConfigJava.java (97%) rename spring-mvc-xml/src/main/java/{org => com}/baeldung/spring/controller/EmployeeController.java (93%) rename spring-mvc-xml/src/main/java/{org => com}/baeldung/spring/controller/PersonController.java (94%) rename spring-mvc-xml/src/main/java/{org => com}/baeldung/spring/form/Employee.java (95%) rename spring-mvc-xml/src/main/java/{org => com}/baeldung/spring/form/Person.java (98%) rename spring-mvc-xml/src/main/java/{org => com}/baeldung/spring/validator/PersonValidator.java (84%) diff --git a/spring-mvc-xml/pom.xml b/spring-mvc-xml/pom.xml index 896d744e99..75efdca423 100644 --- a/spring-mvc-xml/pom.xml +++ b/spring-mvc-xml/pom.xml @@ -1,6 +1,6 @@ 4.0.0 - org.baeldung + com.baeldung 0.1-SNAPSHOT spring-mvc-xml diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/ClientWebConfig.java b/spring-mvc-xml/src/main/java/com/baeldung/spring/ClientWebConfig.java similarity index 93% rename from spring-mvc-xml/src/main/java/org/baeldung/spring/ClientWebConfig.java rename to spring-mvc-xml/src/main/java/com/baeldung/spring/ClientWebConfig.java index c4d819caa5..b5238b04d5 100644 --- a/spring-mvc-xml/src/main/java/org/baeldung/spring/ClientWebConfig.java +++ b/spring-mvc-xml/src/main/java/com/baeldung/spring/ClientWebConfig.java @@ -1,4 +1,4 @@ -package org.baeldung.spring; +package com.baeldung.spring; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.ImportResource; diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/ClientWebConfigJava.java b/spring-mvc-xml/src/main/java/com/baeldung/spring/ClientWebConfigJava.java similarity index 97% rename from spring-mvc-xml/src/main/java/org/baeldung/spring/ClientWebConfigJava.java rename to spring-mvc-xml/src/main/java/com/baeldung/spring/ClientWebConfigJava.java index d2b57da818..06b2c0e461 100644 --- a/spring-mvc-xml/src/main/java/org/baeldung/spring/ClientWebConfigJava.java +++ b/spring-mvc-xml/src/main/java/com/baeldung/spring/ClientWebConfigJava.java @@ -1,4 +1,4 @@ -package org.baeldung.spring; +package com.baeldung.spring; import org.springframework.context.annotation.Bean; import org.springframework.web.servlet.ViewResolver; diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/controller/EmployeeController.java b/spring-mvc-xml/src/main/java/com/baeldung/spring/controller/EmployeeController.java similarity index 93% rename from spring-mvc-xml/src/main/java/org/baeldung/spring/controller/EmployeeController.java rename to spring-mvc-xml/src/main/java/com/baeldung/spring/controller/EmployeeController.java index 1dbe230adc..baffe7b503 100644 --- a/spring-mvc-xml/src/main/java/org/baeldung/spring/controller/EmployeeController.java +++ b/spring-mvc-xml/src/main/java/com/baeldung/spring/controller/EmployeeController.java @@ -1,8 +1,8 @@ -package org.baeldung.spring.controller; +package com.baeldung.spring.controller; import javax.validation.Valid; -import org.baeldung.spring.form.Employee; +import com.baeldung.spring.form.Employee; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.validation.BindingResult; diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/controller/PersonController.java b/spring-mvc-xml/src/main/java/com/baeldung/spring/controller/PersonController.java similarity index 94% rename from spring-mvc-xml/src/main/java/org/baeldung/spring/controller/PersonController.java rename to spring-mvc-xml/src/main/java/com/baeldung/spring/controller/PersonController.java index 0d89a29b9d..39dabf86ed 100644 --- a/spring-mvc-xml/src/main/java/org/baeldung/spring/controller/PersonController.java +++ b/spring-mvc-xml/src/main/java/com/baeldung/spring/controller/PersonController.java @@ -1,4 +1,4 @@ -package org.baeldung.spring.controller; +package com.baeldung.spring.controller; import java.util.ArrayList; import java.util.LinkedHashMap; @@ -7,8 +7,8 @@ import java.util.Map; import javax.validation.Valid; -import org.baeldung.spring.form.Person; -import org.baeldung.spring.validator.PersonValidator; +import com.baeldung.spring.form.Person; +import com.baeldung.spring.validator.PersonValidator; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/form/Employee.java b/spring-mvc-xml/src/main/java/com/baeldung/spring/form/Employee.java similarity index 95% rename from spring-mvc-xml/src/main/java/org/baeldung/spring/form/Employee.java rename to spring-mvc-xml/src/main/java/com/baeldung/spring/form/Employee.java index 70132b9665..f41496212f 100644 --- a/spring-mvc-xml/src/main/java/org/baeldung/spring/form/Employee.java +++ b/spring-mvc-xml/src/main/java/com/baeldung/spring/form/Employee.java @@ -1,4 +1,4 @@ -package org.baeldung.spring.form; +package com.baeldung.spring.form; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/form/Person.java b/spring-mvc-xml/src/main/java/com/baeldung/spring/form/Person.java similarity index 98% rename from spring-mvc-xml/src/main/java/org/baeldung/spring/form/Person.java rename to spring-mvc-xml/src/main/java/com/baeldung/spring/form/Person.java index bf313b4d7d..88e4f9ff4c 100644 --- a/spring-mvc-xml/src/main/java/org/baeldung/spring/form/Person.java +++ b/spring-mvc-xml/src/main/java/com/baeldung/spring/form/Person.java @@ -1,4 +1,4 @@ -package org.baeldung.spring.form; +package com.baeldung.spring.form; import java.util.List; diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/validator/PersonValidator.java b/spring-mvc-xml/src/main/java/com/baeldung/spring/validator/PersonValidator.java similarity index 84% rename from spring-mvc-xml/src/main/java/org/baeldung/spring/validator/PersonValidator.java rename to spring-mvc-xml/src/main/java/com/baeldung/spring/validator/PersonValidator.java index 068a9fee7f..3a271f6545 100644 --- a/spring-mvc-xml/src/main/java/org/baeldung/spring/validator/PersonValidator.java +++ b/spring-mvc-xml/src/main/java/com/baeldung/spring/validator/PersonValidator.java @@ -1,6 +1,6 @@ -package org.baeldung.spring.validator; +package com.baeldung.spring.validator; -import org.baeldung.spring.form.Person; +import com.baeldung.spring.form.Person; import org.springframework.stereotype.Component; import org.springframework.validation.Errors; import org.springframework.validation.ValidationUtils; diff --git a/spring-mvc-xml/src/main/resources/webMvcConfig.xml b/spring-mvc-xml/src/main/resources/webMvcConfig.xml index f3297fdbf6..e9e2f1c536 100644 --- a/spring-mvc-xml/src/main/resources/webMvcConfig.xml +++ b/spring-mvc-xml/src/main/resources/webMvcConfig.xml @@ -12,7 +12,7 @@ - + diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/view/personForm.jsp b/spring-mvc-xml/src/main/webapp/WEB-INF/view/personForm.jsp index 79bda7c17d..a26fb6c3ea 100644 --- a/spring-mvc-xml/src/main/webapp/WEB-INF/view/personForm.jsp +++ b/spring-mvc-xml/src/main/webapp/WEB-INF/view/personForm.jsp @@ -24,7 +24,7 @@

Welcome, Enter The Person Details

- + diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml b/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml index a39c4fdd3a..aeaa9d394e 100644 --- a/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml +++ b/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml @@ -16,7 +16,7 @@ contextConfigLocation - org.baeldung.spring + com.baeldung.spring