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 <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
  
  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
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to