You are viewing a plain text version of this content. The canonical link for it is here.
Posted to watchdog-dev@jakarta.apache.org by sa...@locus.apache.org on 2000/10/04 02:03:36 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage errorpageNoBuff.jsp errorpageWrong.jsp myErrorpage.jsp negativeIsErrorPage.jsp negativeNoErrorPageBuff.jsp positiveErrorPage.jsp

santosh     00/10/03 17:03:36

  Added:       src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage
                        errorpageNoBuff.jsp errorpageWrong.jsp
                        myErrorpage.jsp negativeIsErrorPage.jsp
                        negativeNoErrorPageBuff.jsp positiveErrorPage.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/errorpageNoBuff.jsp
  
  Index: errorpageNoBuff.jsp
  ===================================================================
  <html>
  <title>errorpageNoBuff</title>
  <body>
  <%@ page isErrorPage="true" buffer="none" %>
  <% out.println("This is test error page"); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/errorpageWrong.jsp
  
  Index: errorpageWrong.jsp
  ===================================================================
  <html>
  <title>errorpage</title>
  <body>
  <%@ page isErrorPage="false" %>
  <% out.println("This is test error page"); %>
  <% out.println(exception.getMessage()); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/myErrorpage.jsp
  
  Index: myErrorpage.jsp
  ===================================================================
  <html>
  <title>myErrorpage</title>
  <body>
  <!-- error page for positiveErrorPage.jsp -->
  <%@ page isErrorPage="true"  %>
  <% out.println("This is test error page"); %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/negativeIsErrorPage.jsp
  
  Index: negativeIsErrorPage.jsp
  ===================================================================
  <html>
  <title>negativeIsErrorPage</title>
  <body>
  <% /** 	Name : negativeIsErrorPage
  	Description : Set the value of iserrorpage to false in a page. 
  	              Now try to access the "exception" variable of this page 
  	              in a scriptlet.
  	Result :Fatal Translation Error
  **/ %>	 
  <!-- We are setting the error page to "errorpageWrong.jsp" where iserrorpage is false -->
  <%@ page errorPage="errorpageWrong.jsp" autoFlush="false" %>
  <%! int i=0; %>
  <%= 9/i %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/negativeNoErrorPageBuff.jsp
  
  Index: negativeNoErrorPageBuff.jsp
  ===================================================================
  <html>
  <title>negativeNoErrorPageBuff</title>
  <body>
  <% /** 	Name : negativeNoErrorPageBuff
  	Description : Create a jsp page that contains an exception. 
  	              Set its errorpage attribute to a second page. On the 
  	              second page, set the buffer to false and iserrorpage to 
  	              true. Access the first page.
  	Result :Fatal translation error
  **/ %>	 
  <!-- We are setting the error page to "errorpage.jsp" where buffer is none -->
  <%@ page errorPage="errorpageNoBuff.jsp"  autoFlush="false" %>
  <%! int i=0; %>
  <%= 9/i %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/positiveErrorPage.jsp
  
  Index: positiveErrorPage.jsp
  ===================================================================
  <html>
  <title>positiveErrorPage</title>
  <body>
  <% /** 	Name : positiveErrorPage
  	Description : Here, the errorPage directive is used.An exception is
  	generated by dividing an integer value by 0.
  	Result :Expected to show the specified errorpage.
  **/ %>	 
  <!-- We are setting the error page to "errorpage.jsp" where iserrorpage is true -->
  <%@ page errorPage="myErrorpage.jsp" autoFlush="false" %>
  <%! int i=0; %>
  <%= 9/i %>
  </body>
  </html>