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/core_syntax/scripting/expressions negativeExprBean.jsp negativeExprSyntax.jsp positiveExpr.jsp positiveExprBean.jsp positiveExprComment.jsp positiveExprSyntax.jsp
Date Wed, 04 Oct 2000 00:12:59 GMT
santosh     00/10/03 17:12:59

  Added:       src/server/jsp-tests/jsp/core_syntax/scripting/expressions
                        negativeExprBean.jsp negativeExprSyntax.jsp
                        positiveExpr.jsp positiveExprBean.jsp
                        positiveExprComment.jsp positiveExprSyntax.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/expressions/negativeExprBean.jsp
  
  Index: negativeExprBean.jsp
  ===================================================================
  <html>
  <title>negativeExprBean</title>
  <body>
  <% /**	Name: negativeExprBean
  		Description: Use a bean with the useBean action in the page.
  			  	Then try to retrieve one of its properties with an 
  			  	expression.
  		Result: Should throw ClassCastException
  **/ %>					  	
  <jsp:useBean id="counter" scope="request" class="core_syntax.scripting.expressions.Counter"
/>
  
  <!-- using expression to setCounter to set counter value 10 -->
  <%= counter.setCounter(10) %>
   
  <!-- using getcounterValue method in bean -->
  <%= counter.getCounterValue() %>
  
  </body>
  <html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/expressions/negativeExprSyntax.jsp
  
  Index: negativeExprSyntax.jsp
  ===================================================================
  <html>
  <title>negativeExprSyntax</title>
  <body>
  <% /**	Name:negativeExprSyntax
  		Description: Create an invalid expression element .
  			 Try to call the JSP page	
     		Result: Fatal translation error
  **/ %>   		 			 
  <%! int i=10; %>
  <!-- invalid semi colon is used in the expression element -->
  <%= i*i; %>
  </body>
  <html>
   
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/expressions/positiveExpr.jsp
  
  Index: positiveExpr.jsp
  ===================================================================
  <html>
  <title>positiveExpr</title>
  <body>
  <% /** Name: positiveExpr
  	   Description:Create a valid JSP expression.
  	   		 Call the JSP page.
  	   Result: The JSP page output with the evaluated 
  	   		 value of expression duly inserted in the 
  	   		 page.
  **/ %>	   		 	   		 
  <!-- declarations -->
  <%! int i=10,j=5; %>
  <!-- using valid expression -->
  <%= i*j %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/expressions/positiveExprBean.jsp
  
  Index: positiveExprBean.jsp
  ===================================================================
  <html>
  <title>positiveExprBean</title>
  <body>
  <% /**	Name:positiveExprBean
  		Description: Use a bean with useBean action in the page.
  	    			 Then try to retrieve one of its properties 
  	    			 with an expression.
  		Result: The HTML should contain the value of that property 
  					 inserted in the page.
  **/ %>					 	    			 
  <jsp:useBean id="counter" scope="request" class="core_syntax.scripting.expressions.Counter"
/>
  
  <!-- using scriptlet setCounter to set counter value 10 -->
  <% counter.setCounter(10); %>
  <!-- using getcounterValue method in bean -->
  <%= counter.getCounterValue() %>
  
  </body>
  <html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/expressions/positiveExprComment.jsp
  
  Index: positiveExprComment.jsp
  ===================================================================
  <html>
  <title>positiveExprComment </title>
  <body>
  <% /**	Name:positiveExprComment
  		Description: Create a JSP page with a JSP 
  			  expression inserted into a HTML comment
  		Result: The HTML should contain the value of the
  			  expression inserted into the comment
  **/ %>			  			  
  <%! int i=10,j=5; %> 
  <!-- expecting a value 50 in the html comments tag -->
  <!-- <%= i*j  %>-->
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/expressions/positiveExprSyntax.jsp
  
  Index: positiveExprSyntax.jsp
  ===================================================================
  <html>
  
  <title>positiveExprSyntax</title>
  <body>
  <% /**	Name:positiveExprSyntax
  		Description: Create an expression in the page with no
  			 space between the start tag and expression. Similarly 
  			 have no space between the end of the expression and
  			 end tag.
  		Result: Should return the HTML of the page with the evaluated
  			 value of the expression
  **/ %>			 			 
  
  <%! int i=10; %>
  <!-- with no space between expression tags -->
  <!-- expecting a value 100 -->
  <%=i*i%>
  </body>
  </html>
   
  
  

Mime
View raw message