Skip to content

Commit 6b333ed

Browse files
author
Arun Gupta
committed
Slightly more indicative titles and better display of results
1 parent 541b538 commit 6b333ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

validation/custom-constraint/src/main/java/org/javaee7/validation/custom/constraint/TestServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
8383
} catch (ConstraintViolationException e) {
8484
out.println("ConstraintViolationException expected and caught");
8585
}
86-
out.println("Was ConstraintViolationException caught ?");
86+
out.println("<br><br>Was ConstraintViolationException caught ?");
8787
out.println("</body>");
8888
out.println("</html>");
8989
}

validation/custom-constraint/src/main/webapp/index.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
<html>
4747
<head>
4848
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
49-
<title>Validation using Custom Constraint</title>
49+
<title>Bean Validation : Custom Constraint</title>
5050
</head>
5151
<body>
52-
<h1>Validation using Custom Constraint</h1>
52+
<h1>Bean Validation : Custom Constraint</h1>
5353
Call <a href="${pageContext.request.contextPath}/TestServlet">servlet</a> that invokes a bean which triggers validation.<br/>
5454
</body>
5555
</html>

0 commit comments

Comments
 (0)