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/11/18 01:46:40 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/misc request_time_attributes.jsp

santosh     00/11/17 16:46:40

  Added:       src/server/jsp-tests/jsp/tagext/misc
                        request_time_attributes.jsp
  Log:
  test to check the order of evaluation for request time attributes
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/misc/request_time_attributes.jsp
  
  Index: request_time_attributes.jsp
  ===================================================================
  <html>
  
  <title>Request time attributes evaluation</title>
  <body>
  <% /**	Name:request_time_attributes
  		Description: This tests the order of evaluation of 
                  request time attributes in actions. The order of evaluation
  	        is from left to right.
  		
  		Result:  Should calculate the expressions from left to right
   			 and return the correct values
  		
  **/ %>			 			 
  
  <%! int i=10; %>
  <%@ taglib  uri="/Testlib.tld"  prefix="request" %>
  <request:ReqTime attr1="<%= i %>" />
  <request:ReqTime attr1='<%= i++ %>' />
  <request:ReqTime attr1="<%= i++ %>" attr2="<%= i++ %>"  />
  <request:ReqTime attr1="<%= ++i %>" attr2="<%= ++i %>" attr3="<%= ++i %>"  />
  <request:ReqTime attr1="<%= --i %>" attr2="<%= --i %>" attr3="<%= --i %>"  />
  
  </body>
  </html>