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/scriptlet negativeScriptletSyntax.jsp positiveScriptlet.jsp positiveScriptletComment.jsp positiveScriptletLiteral.jsp positiveScriptletMultiline.jsp positiveScriptletMultiline2.jsp positiveScriptletUseBean.jsp
Date Wed, 04 Oct 2000 00:12:24 GMT
santosh     00/10/03 17:12:24

  Added:       src/server/jsp-tests/jsp/core_syntax/scripting/scriptlet
                        negativeScriptletSyntax.jsp positiveScriptlet.jsp
                        positiveScriptletComment.jsp
                        positiveScriptletLiteral.jsp
                        positiveScriptletMultiline.jsp
                        positiveScriptletMultiline2.jsp
                        positiveScriptletUseBean.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/scriptlet/negativeScriptletSyntax.jsp
  
  Index: negativeScriptletSyntax.jsp
  ===================================================================
  <html>
  <title>negativeScripletSyntax</title>
  <body>
  <% /**	Name:negativeScripletSyntax
  		Description: Create an invalid scriplet by
  			 not terminating the java statement with
  			 a semicolon(;)
  		Result: Should throw an exception during the
  			 compile
  **/ %>			  			 
  <!-- semi colon is dropped in the scriptlet --> 
  <% String s="india" %>
  <% out.println(s); %>
  </body>
  </html>
  
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/scriptlet/positiveScriptlet.jsp
  
  Index: positiveScriptlet.jsp
  ===================================================================
  <html>
  <title>positiveScriptlet </title>
  <body>
  <%  /**  Name:positiveScriptlet
           Description:Create a valid scriplet in the
                JSP page.Declare a variable and increment it.          
           Result: The page contents with the incremented
                   value of the variable
  **/ %>                
  <!--variable i=5 is incremented -->
  <%! int i=5; %>
  <% i++; %>
  <% out.println(i); %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/scriptlet/positiveScriptletComment.jsp
  
  Index: positiveScriptletComment.jsp
  ===================================================================
  <html>
  <title>positiveScriptletComment</title>
  <body>
  <% /**  Name:   positiveScriptletComment
          Description: Create a scriptlet which contains 
                  only a Java comment .
          Result: Should return the HTML contents of the 
                  without the java comment.   
  **/ %>                  
  <!-- using java comments in jsp page -->
  <%
  // simple java comments
  /* multiline java comments
  */
  %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/scriptlet/positiveScriptletLiteral.jsp
  
  Index: positiveScriptletLiteral.jsp
  ===================================================================
  <html>
  <title>positiveScripletLiteral</title>
  <body>
  <% /**	Name: positiveScripletLiteral
  		Description: Use the scriplet end tag as a literal
  			  within the scriptlet(say in a out.println() 
  			  statement).
  		Result:Should return the page with the scriplet end 
  			  tag embedded in the output stream.
  **/ %>  			  
  <!-- scriplet end tag is used as literal within the scriptlet -->
  <% out.println("%\>"); %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/scriptlet/positiveScriptletMultiline.jsp
  
  Index: positiveScriptletMultiline.jsp
  ===================================================================
  <html>
  <title>positiveScriptletMultiline</title>
  <body>
  <%	/** Name:positiveScripletMultiline
  		Description: Create a valid scriplet in JSP that
  			spans multiple lines.
  		Result: Should not throw any error
  **/ %>		  
  <!-- multiple lines scriptlet --> 
  <% 	int i=5;
  	int j=10;
  	if(j>i){ 
   %> 10 <% } 
  	else { 
  	%> 5 <% } %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/scriptlet/positiveScriptletMultiline2.jsp
  
  Index: positiveScriptletMultiline2.jsp
  ===================================================================
  <html>
  <title>positiveScriptletMultiline2</title>
  <body>
  <% /**  Name: positiveScriptletMultiline2
          Description: Testing with multiple scriptlets, which spans multiple lines in such
a
          way that each starts and ends in the same line
          Result:Should not throw any error 
  **/ %>      
  <!-- multiple lines scriptlet --> 
  <%! int i=5; %>
  <%! int j=10; %>
  <% if(j>i){ %>10 <%} else { %>
  5 <% } %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/scripting/scriptlet/positiveScriptletUseBean.jsp
  
  Index: positiveScriptletUseBean.jsp
  ===================================================================
  <html>
  <title>positiveScriptletUseBean</title>
  <body>
  <% /**	Name:positiveScripletUseBean
  		Description:Create a valid useBean action in the JSP.
  				    After that,use a scriplet to change the 				
  				    value of a specific bean property. Send the new 
  				    value of the property to outstream.
  		Result: The page contents with the new value of the bean 
  				property
  **/ %>
  								
  <!-- we use scriptlet to access the property of a bean -->
  <jsp:useBean id="counter" scope="request" class="core_syntax.scripting.scriptlet.Counter"
/>
  
  <!-- setCounter method is used in Bean and send to out stream -->
  <%
  	counter.setCounter(10);
  	out.println(counter.getCounterValue());
  %>
  
  </body>
  <html>
  
  
  

Mime
View raw message