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 01:57:55 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/getProperty negativeGetPropNotProperty.jsp negativeGetPropNotRead.jsp negativeGetProps.jsp positiveGetProps.jsp

santosh     00/10/03 16:57:55

  Added:       src/server/jsp-tests/jsp/core_syntax/beantests/getProperty
                        negativeGetPropNotProperty.jsp
                        negativeGetPropNotRead.jsp negativeGetProps.jsp
                        positiveGetProps.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/getProperty/negativeGetPropNotProperty.jsp
  
  Index: negativeGetPropNotProperty.jsp
  ===================================================================
  <html>
  <title>negativeGetPropNotProperty</title>
  <body>
  <% /** 	Name : negativeGetPropNotProperty
  	Description : Accessing a non-existant property of an explicit bean 
                        through a getProperty action
  	Result : Should return an error page.
  **/ %>	 
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.getProperty.StringBean" />
  <jsp:getProperty name="myBean" property="foo" />
  </body></body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/getProperty/negativeGetPropNotRead.jsp
  
  Index: negativeGetPropNotRead.jsp
  ===================================================================
  <html>
  <title>negativeGetPropNotRead</title>
  <body>
  <% /** 	Name : negativeGetPropNotRead
  	Description : Accessing a write-only property of an explicit bean 
                        through a getProperty action
  	Result : Should return an error page.
  **/ %>	 
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.getProperty.StringBean" />
  <jsp:getProperty name="myBean" property="bar" />
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/getProperty/negativeGetProps.jsp
  
  Index: negativeGetProps.jsp
  ===================================================================
  <html>
  <title>negativeGetProps</title>
  <body>
  <% /** 	Name : negativeGetProps
  	Description : Access any property of a non-implicit bean through a
                        getProperty action without first declaring a corresponding
                        useBean action for that page.
  	Result : Should return an error page.
  **/ %>	 
  <!-- accessing the bean thru a scriptlet before the declaration -->
  <%
   out.println(myBean.getName());
  %>
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.getProperty.StringBean" />
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/getProperty/positiveGetProps.jsp
  
  Index: positiveGetProps.jsp
  ===================================================================
  <html>
  <title>positiveGetProps</title>
  <body>
  <% /** 	Name : positiveGetProps
  	Description : Create a valid useBean tag in the JSP. Access one of its
                        properties through a getProperty tag.
  	Result : Should return the value of the property as part of the returned 
  	HTML 
  **/  %>	 
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.getProperty.StringBean" />
  <jsp:getProperty name="myBean" property="name" />
  </body>
  </html>