You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2001/02/17 08:15:15 UTC

cvs commit: jakarta-tomcat/src/tests/webpages/life destroy.jsp

costin      01/02/16 23:15:15

  Added:       src/tests/webpages manual-tests.html
               src/tests/webpages/WEB-INF/classes/life destroy.java
               src/tests/webpages/enc incTest.inc test.jsp testError.jsp
               src/tests/webpages/life destroy.jsp
  Log:
  Added the new contributed tests. Not automated yet, destroy is not easy
  to automate and I'm still figuring how to type KOI8 in xemacs.
  ( I'll add more tests in 8859-2 - Central/East European charset )
  
  Submitted by:	Jason Novotny <JD...@lbl.gov>, a_ilyin@yahoo.com
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat/src/tests/webpages/manual-tests.html
  
  Index: manual-tests.html
  ===================================================================
  <h2>Not Yet Automated Tests</h2>
  
  <h3>Destroy</h3>
  
  You need to check the logs for the messages:
  
  
  <h3>foo</h3>
  
  
  1.1                  jakarta-tomcat/src/tests/webpages/WEB-INF/classes/life/destroy.java
  
  Index: destroy.java
  ===================================================================
  package life;
  
  import java.io.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  
  public class destroy extends HttpServlet {
  
      public void init() throws ServletException {
  	System.out.println("GPDK init");
      }
  
      public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
  	response.setContentType("text/html");
          PrintWriter out = response.getWriter();
  
          out.println("<html>");
          out.println("<head>");
  	out.println("<title>Hello, World!</title>");
          out.println("</head>");
          out.println("<body bgcolor=\"white\">");
   	out.println("<h1>Hello World!</h1>");	
          out.println("<body>");
  	out.println("</html>");
      }
  
      public void destroy() {
  	System.out.println("GPDK destroy");
      }
  
  }
  
  
  
  1.1                  jakarta-tomcat/src/tests/webpages/enc/incTest.inc
  
  	<<Binary file>>
  
  
  1.1                  jakarta-tomcat/src/tests/webpages/enc/test.jsp
  
  Index: test.jsp
  ===================================================================
  <%@ page import="java.util.*" %>
  
  <html>
  <head><title>���� �������</title></head>
  
  <%= new Date() %><br>
  
  ��� � ���� �����<br>
  ---------------------<br>
  <%@ include file="incTest.inc"%>
  <br>---------------------
  ����� � ����
  
  
  </body>
  </html>
  
  
  
  
  
  
  
  
  1.1                  jakarta-tomcat/src/tests/webpages/enc/testError.jsp
  
  Index: testError.jsp
  ===================================================================
  <%@ page import="java.util.*" contentType="text/html; charset=KOI8-r"%>
  
  <html>
  <head><title>���� �������</title></head>
  
  <%= new Date() %><br>
  
  ��� � ���� �����<br>
  ---------------------<br>
  <%@ include file="incTest.inc"%>
  <br>---------------------
  ����� � ����
  
  
  </body>
  </html>
  
  
  
  
  
  
  
  
  1.1                  jakarta-tomcat/src/tests/webpages/life/destroy.jsp
  
  Index: destroy.jsp
  ===================================================================
  <%!  public void jspDestroy() {
          System.out.println("JSP destroy");
       }
  %>
  
  Hello World