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:04:52 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language included.jsp includedJava.jsp negativeLangAny.jsp negativeLangIncludeAny.jsp negativeLangIncludeJava.jsp negativeLangJava.jsp negativeNonJava.jsp positiveLang.jsp

santosh     00/10/03 17:04:51

  Added:       src/server/jsp-tests/jsp/core_syntax/directives/page/language
                        included.jsp includedJava.jsp negativeLangAny.jsp
                        negativeLangIncludeAny.jsp
                        negativeLangIncludeJava.jsp negativeLangJava.jsp
                        negativeNonJava.jsp positiveLang.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language/included.jsp
  
  Index: included.jsp
  ===================================================================
  <html>
  <title>included</title>
  <body>
  <!-- this is included by negativeLangIncludeAny.jsp-->
  <%@ page language="javascript" %>
  <% out.println("hello from included"); %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language/includedJava.jsp
  
  Index: includedJava.jsp
  ===================================================================
  <html>
  <title>includedJava</title>
  <body>
  <!-- this is included by negativeLangIncludeJava.jsp-->
  <%@ page language="java" %>
  <% out.println("hello from includedJava"); %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language/negativeLangAny.jsp
  
  Index: negativeLangAny.jsp
  ===================================================================
  <html>
  <title>negativeLangAny</title>
  <body>
  <% /**	Name: NegativeLangAny
  		Description:Create two jsp directives with the language
  			  attribute set to "java" in the first case and anything 
  			  other than "java" in the second.
  		Result: Fatal translation error
  **/ %>		
  <!-- language directive set to java & something else  -->
  <!-- we expect translation failure  -->
  <%@ page language="java" errorpage="myerror.jsp" %>
  <%@ page language="javascript" %>
  hello
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language/negativeLangIncludeAny.jsp
  
  Index: negativeLangIncludeAny.jsp
  ===================================================================
  <html>
  <title>negativeLangIncludeAny</title>
  <body>
  <% /**	Name: negativeLangIncludeAny
  		Description: Create a page with the language attribute set to
  			  "java" and with an include attribute. The included page
  			  should have a jsp directive with language attribute not 
  			  set to java.
  		Result: Fatal translation error
  **/ %>		
  <!-- language directive set to java  -->
  <!-- we include a page whose language directive set to something else-->
  <!-- we expect translation failure  -->
  <%@ page language="java" %>
  <% out.println("hello"); %>
  <%@ include file="included.jsp" %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language/negativeLangIncludeJava.jsp
  
  Index: negativeLangIncludeJava.jsp
  ===================================================================
  <html>
  <title>negativeLangIncludeJava</title>
  <body>
  <% /**	Name: negativeLangIncludeJava
  		Description: Create a page with the language attribute set
  			  to java and with an include attribute. The included page 
  			  should have a jsp directive with language attribute set to
  			  java.
  		Result:Fatal translation error
  **/ %>		
  <!-- language directive set to java  -->
  <!-- we include a page whose language directive set to java -->
  <!-- we expect translation failure since we set directive of language twice -->
  <%@ page language="java" %>
  <% out.println("hello"); %>
  <%@ include file="includedJava.jsp" %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language/negativeLangJava.jsp
  
  Index: negativeLangJava.jsp
  ===================================================================
  <html>
  <title>negativeLangJava</title>
  <body>
  <% /**	Name:negativeLangJava
  		Description: Create two jsp directives on the same page
  			 with language attribute set to "java" in both cases
  		Result:Fatal translation error
  **/ %>		
  <!-- test if language directive set to java twice cause translation failure -->
  <%@ page language="java" %>
  <%@ page language="java" %>
  hello
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language/negativeNonJava.jsp
  
  Index: negativeNonJava.jsp
  ===================================================================
  <html>
  <title>negativeNonJava</title>
  <body>
  <% /**	Name: negativeNonJava
  		Description:Create a page with a scriptlet (before a jsp directive).
  			  then put a jsp directive after the scriptlet with the language
  			  not set to java
  		Result: fatal translation error
  **/ %>		
  <!-- language directive set to something other than java after a scriptlet -->
  <!-- we expect translation failure  -->
  <% out.println("hello"); %>
  <%@ page language="javascript" %>
  hello
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/language/positiveLang.jsp
  
  Index: positiveLang.jsp
  ===================================================================
  <html>
  <title>positiveLang</title>
  <body>
  <% /**	Name: positiveLang
  		Description:Use a jsp attribute in a page with
  			  the language attribute set to "java".
  		Result:No error should be returned
  **/ %>		
  <!-- testing if the language directive set to java cause any problem -->
  <%@ page language="java" %>
  hello
  </body>
  </html>