Skip to content

Commit f9612af

Browse files
author
Arun Gupta
committed
Better output messages
1 parent 2567179 commit f9612af

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎servlet/nonblocking/src/main/java/org/javaee7/servlet/nonblocking/ReadTestServlet.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
7171
try (PrintWriter output = response.getWriter()) {
7272
output.println("<html>");
7373
output.println("<head>");
74-
output.println("<title>Servlet ReadTestServlet</title>");
74+
output.println("<title>Reading asynchronously</title>");
7575
output.println("</head>");
7676
output.println("<body>");
77-
output.println("<h1>Servlet ReadTestServlet at " + request.getContextPath() + "</h1>");
77+
output.println("<h1>Reading asynchronously</h1>");
7878

7979
AsyncContext context = request.startAsync();
8080
ServletInputStream input = request.getInputStream();

‎servlet/nonblocking/src/main/java/org/javaee7/servlet/nonblocking/TestClient.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
7575
try (PrintWriter out = response.getWriter()) {
7676
out.println("<html>");
7777
out.println("<head>");
78-
out.println("<title>Servlet TestClient</title>");
78+
out.println("<title>Invoke the servlet clients</title>");
7979
out.println("</head>");
8080
out.println("<body>");
81-
out.println("<h1>Servlet TestClient at " + request.getContextPath() + "</h1>");
81+
out.println("<h1>Invoke the servlet clients</h1>");
8282

8383
String path = "http://"
8484
+ request.getServerName()
@@ -107,7 +107,7 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
107107
output.flush();
108108
output.close();
109109
}
110-
out.println("<br><br>Check GlassFish server.log");
110+
out.println("<br><br>Check server.log for output");
111111
out.println("</body>");
112112
out.println("</html>");
113113
} catch (InterruptedException | IOException ex) {

‎servlet/nonblocking/src/main/java/org/javaee7/servlet/nonblocking/WriteTestServlet.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
7272
out.println("<!DOCTYPE html>");
7373
out.println("<html>");
7474
out.println("<head>");
75-
out.println("<title>Servlet WriteServlet</title>");
75+
out.println("<title>Writing Asynchronously</title>");
7676
out.println("</head>");
7777
out.println("<body>");
78-
out.println("<h1>Servlet WriteServlet at " + request.getContextPath() + "</h1>");
78+
out.println("<h1>Writing Asynchronously</h1>");
7979

8080
AsyncContext context = request.startAsync();
8181
ServletOutputStream output = response.getOutputStream();

‎servlet/nonblocking/src/main/webapp/index.jsp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<html>
4747
<head>
4848
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
49-
<title>Non-blocking I/O using Servlet 3.1</title>
49+
<title>Servlet : Non-blocking I/O</title>
5050
</head>
5151
<body>
5252
<h1>Non-blocking I/O using Servlet 3.1</h1>

0 commit comments

Comments
 (0)