diff --git a/spring-mvc-xml/src/main/resources/messages.properties b/spring-mvc-xml/src/main/resources/messages.properties index 2a187731ae..2a3cccf76c 100644 --- a/spring-mvc-xml/src/main/resources/messages.properties +++ b/spring-mvc-xml/src/main/resources/messages.properties @@ -1,2 +1,2 @@ -NotEmpty.person.name = Name is required! +required.name = Name is required! NotEmpty.person.password = Password is required! \ No newline at end of file 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 9b0a78899c..79bda7c17d 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 @@ -12,6 +12,12 @@ color: #ff0000; } + .errorbox { + + background-color: #ffEEEE; + border: 2px solid #ff0000; + } +
@@ -20,13 +26,13 @@