tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r531500 - /tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java
Date Mon, 23 Apr 2007 15:28:52 GMT
Author: jfclere
Date: Mon Apr 23 08:28:50 2007
New Revision: 531500

URL: http://svn.apache.org/viewvc?view=rev&rev=531500
Log:
Simplify the test hello webapp. backport from TC 6.0.x.

Modified:
    tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java

Modified: tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java
URL: http://svn.apache.org/viewvc/tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java?view=diff&rev=531500&r1=531499&r2=531500
==============================================================================
--- tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java
(original)
+++ tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java
Mon Apr 23 08:28:50 2007
@@ -68,22 +68,9 @@
 	writer.println("<td>");
 	writer.println("<h1>Sample Application Servlet</h1>");
 	writer.println("This is the output of a servlet that is part of");
-	writer.println("the Hello, World application.  It displays the");
-	writer.println("request headers from the request we are currently");
-	writer.println("processing.");
+	writer.println("the Hello, World application.");
 	writer.println("</td>");
 	writer.println("</tr>");
-	writer.println("</table>");
-
-	writer.println("<table border=\"0\" width=\"100%\">");
-	Enumeration names = request.getHeaderNames();
-	while (names.hasMoreElements()) {
-	    String name = (String) names.nextElement();
-	    writer.println("<tr>");
-	    writer.println("  <th align=\"right\">" + name + ":</th>");
-	    writer.println("  <td>" + request.getHeader(name) + "</td>");
-	    writer.println("</tr>");
-	}
 	writer.println("</table>");
 
 	writer.println("</body>");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message