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 rl...@apache.org on 2002/01/29 00:40:36 UTC
cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/actions/getProperty negativeGetPropObjectNotFoundException.jsp positiveGetProps.jsp
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>