1 16 17 package org.apache.tester; 18 19 20 import java.io.*; 21 import java.util.*; 22 import javax.servlet.*; 23 import javax.servlet.http.*; 24 25 26 32 33 public class Redirect01a extends HttpServlet { 34 35 36 38 39 48 public void doGet(HttpServletRequest request, 49 HttpServletResponse response) 50 throws IOException, ServletException { 51 52 response.setContentType("text/plain"); 53 PrintWriter writer = response.getWriter(); 54 writer.println("Redirect01a PASSED"); 55 while (true) { 56 String message = StaticLogger.read(); 57 if (message == null) 58 break; 59 writer.println(message); 60 } 61 StaticLogger.reset(); 62 63 } 64 65 66 } 67 | Popular Tags |