jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sant...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspFactory positiveGetDefaultFactory.jsp positiveGetPageContext.jsp positiveReleasePageContext.jsp positiveSetDefaultFactory.jsp
Date Wed, 04 Oct 2000 00:20:48 GMT
santosh     00/10/03 17:20:48

  Added:       src/server/jsp-tests/jsp/engine/JspFactory
                        positiveGetDefaultFactory.jsp
                        positiveGetPageContext.jsp
                        positiveReleasePageContext.jsp
                        positiveSetDefaultFactory.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspFactory/positiveGetDefaultFactory.jsp
  
  Index: positiveGetDefaultFactory.jsp
  ===================================================================
  <html>
  <title>positiveGetDefaultFactory</title>
  <body>
  <% /** Name :positiveGetDefaultFactory
         Description : we call the static method getDefaultFactory
         Result : should return a non null value for the default factory 
  **/ %>
  <%@ page import="javax.servlet.jsp.*" %>
  <% JspFactory jf=JspFactory.getDefaultFactory(); %>
  <% if(jf!=null) {
         out.println("it works"); 
     } else {
         out.println("it does not work");
     }
  %>
  </body>
  </html>
  
       
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspFactory/positiveGetPageContext.jsp
  
  Index: positiveGetPageContext.jsp
  ===================================================================
  <html>
  <title>positiveGetPageContext</title>
  <body>
  <%  /** Name :positiveGetPageContext
          Description :we use getDefaultFactory to get a valid factory object
                       and call getPageContext and on the obtained object call
                       a pagecontext method
          Result :we should get no compile time error and pagecontext method
                  should work
   **/ %>
  <%@ page import="javax.servlet.jsp.*" %>
  <% JspFactory jf=JspFactory.getDefaultFactory(); %>
  <% if(jf!=null) {
      PageContext pc=jf.getPageContext(this,request,response,null,true,10,false);
      if(pc!=null) {
         if(pc.getResponse()!=null)
         out.println("it works");
      }else {
         out.println("it does not work");
      }
     } else {
         out.println("it does not work");
     }
  %>
  </body>
  </html>
  
  
       
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspFactory/positiveReleasePageContext.jsp
  
  Index: positiveReleasePageContext.jsp
  ===================================================================
  <html>
  <title>positiveReleasePageContext</title>
  <body>
  <% /**  Name :positiveReleasePageContext
          Description : use getDefaultFactory and use it to create a pageContext 
                        object. use the method releasePageContext with the 
                        pageContext created and then call getResponse method
          Result :we should get null as result of getResponse for the 
                  pageContext after release method
   
  **/ %>
  <%@ page import="javax.servlet.jsp.*" %>
  <% JspFactory jf=JspFactory.getDefaultFactory(); %>
  <% if(jf!=null) {
      PageContext pc=jf.getPageContext(this,request,response,null,true,10,false);
      jf.releasePageContext(pc);
      if(pc!=null) {
         if(pc.getResponse()==null)
         out.println("it works");
      }else {
         out.println("it does not work");
      }
     } else {
         out.println("it does not work");
     }
  %>
  </body>
  </html>
  
       
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspFactory/positiveSetDefaultFactory.jsp
  
  Index: positiveSetDefaultFactory.jsp
  ===================================================================
  <html>
  <title>positiveSetDefaultFactory</title>
  <body>
  <%   /** Name : positiveSetDefaultFactory
           Description :use getDefaultFactory to get a factory object. use the 
                        same object for setting as default
           Result: page should get compiled and output we should get without error
  **/ %>         
  <%@ page import="javax.servlet.jsp.*" %>
  <% JspFactory jf=JspFactory.getDefaultFactory(); %>
  <% if(jf!=null) {
         JspFactory.setDefaultFactory(jf);
         out.println("it works"); 
     } else {
         out.println("it does not work");
     }
  %>
  </body>
  </html>
  
       
  
  
  

Mime
View raw message