jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlu...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/actions/getProperty negativeGetPropObjectNotFoundException.jsp positiveGetProps.jsp
Date Mon, 28 Jan 2002 23:40:36 GMT
rlubke      02/01/28 15:40:36

  Added:       src/server/jsp-tests/jsp/core_syntax/actions/getProperty
                        negativeGetPropObjectNotFoundException.jsp
                        positiveGetProps.jsp
  Log:
   - reorg and additon/modification of jsp:getProperty tests
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/actions/getProperty/negativeGetPropObjectNotFoundException.jsp
  
  Index: negativeGetPropObjectNotFoundException.jsp
  ===================================================================
  <html>
  <title>negativeGetPropObjectNotFoundException</title>
  <body>
  <% /** 	Name : negativeGetPropObjectNotFoundException
  	Description : Access a property of a non-existant bean. An Exception
                    should be raised.
  	Result : An Exception of Unknown type should be caught and a message should
               be displayed.
  **/  %>
  <% try { %>
  <jsp:getProperty name="notFoundBean" property="name" />
  <% } catch ( Exception e ) { 
            out.println( "Exception successfully caught: Test Status: PASS" );
     }
  %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/actions/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.actions.getProperty.StringBean"
/>
  <jsp:getProperty name="myBean" property="name" />
  </body>
  </html>
  
  
  

--
To unsubscribe, e-mail:   <mailto:watchdog-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:watchdog-dev-help@jakarta.apache.org>


Mime
View raw message