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:11:50 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/declaration negativeDeclarationSyn.jsp positiveDeclaration.jsp

santosh     00/10/03 17:11:50

  Added:       src/server/jsp-tests/jsp/core_syntax/scripting/declaration
                        negativeDeclarationSyn.jsp positiveDeclaration.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/declaration/negativeDeclarationSyn.jsp
  
  Index: negativeDeclarationSyn.jsp
  ===================================================================
  <html>
  <title>negativeDeclarationSyn </title>
  <body>
  <% /**  Name:negativeDeclarationSyn
  		Description:Create a JSP page which has a syntax 
  	   			error in the declaration statement .try to use 
  	    		the declared variable in the rest of the page
  		Result:Fatal Translation Error (Undefined)
  **/ %>  	 	
  <!-- error syntax is used in the declaration statement -->
  <%! int i=627; > 
  <% out.println(i); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/declaration/positiveDeclaration.jsp
  
  Index: positiveDeclaration.jsp
  ===================================================================
  <html>
  <title>positiveDeclaration</title>
  <body>
  <% /**	Name : positiveDeclaration
  		Description: Create a JSP page with a valid Java 
  			declaration element. Use the declared variable 
  			in the page in a scriptlet.   
  		Result: No error  
   **/ %>		        
  <!-- correct syntax is used in the declaration statement -->
  <%! int i=627; %>
  <% out.println(i); %>
  </body>
  </html>