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 02:24:21 UTC
cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle tag_attr_setting_1.jsp tag_attr_setting_2.jsp tag_attr_setting_3.jsp tag_check_BodyContent_1.jsp tag_check_BodyContent_2.jsp tag_check_BodyContent_3.jsp tag_check_BodyContent_4.jsp tag_check_BodyContent_5.jsp tag_check_comments_1.jsp tag_check_comments_2.jsp tag_doEndTag_skip_page.jsp tag_doStart_eval_body_include.jsp tag_doStart_skip_body.jsp tag_doStart_skip_page.jsp tag_ignoreBody.jsp tag_int.jsp tag_negative_1.jsp tag_negative_2.jsp tag_negative_3.jsp tag_negative_4.jsp tag_nonempty_body_1.jsp tag_nonempty_body_2.jsp tag_positiveBody.jsp tag_translationtime_verify_1.jsp
santosh 00/10/03 17:24:21
Added: src/server/jsp-tests/jsp/tagext/LifeCycle
tag_attr_setting_1.jsp tag_attr_setting_2.jsp
tag_attr_setting_3.jsp tag_check_BodyContent_1.jsp
tag_check_BodyContent_2.jsp
tag_check_BodyContent_3.jsp
tag_check_BodyContent_4.jsp
tag_check_BodyContent_5.jsp
tag_check_comments_1.jsp tag_check_comments_2.jsp
tag_doEndTag_skip_page.jsp
tag_doStart_eval_body_include.jsp
tag_doStart_skip_body.jsp tag_doStart_skip_page.jsp
tag_ignoreBody.jsp tag_int.jsp tag_negative_1.jsp
tag_negative_2.jsp tag_negative_3.jsp
tag_negative_4.jsp tag_nonempty_body_1.jsp
tag_nonempty_body_2.jsp tag_positiveBody.jsp
tag_translationtime_verify_1.jsp
Log:
watchdog 4.0
Revision Changes Path
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_attr_setting_1.jsp
Index: tag_attr_setting_1.jsp
===================================================================
<%-- Test that attribute setting is as wanted --%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count>
<x:count att1="one">
one
</x:count>
<x:count att1="two">
<x:checkCount nested="2"/>
two
</x:count>
<x:checkCount nested="1"/>
</x:count>
<x:count>
<x:count att1="one"/>
<x:count att2="bye">
<x:count att2="three">
<x:checkCount nested="3"/>
</x:count>
</x:count>
</x:count>
<x:checkCount start="7"/>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_attr_setting_2.jsp
Index: tag_attr_setting_2.jsp
===================================================================
<%--
Test that attribute setting is as wanted
Intermix some different tags
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count>
<x:count att1="one">
<x:aTag att="foo">
one
<x:checkCount nested="2"/>
</x:aTag>
</x:count>
<x:aTag att="bar"/>
<x:count att1="two">
<x:checkCount nested="2"/>
two
</x:count>
<x:checkCount nested="1"/>
</x:count>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_attr_setting_3.jsp
Index: tag_attr_setting_3.jsp
===================================================================
<%--
Test that attribute setting is as wanted
Intermix some different tags
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count>
<x:count att1="one">
<x:aTag att="foo">
one
<x:checkCount nested="2"/>
</x:aTag>
</x:count>
<x:bTag att="wombat">
<x:bTag att='wombat'>
<x:aTag att="bar"/>
</x:bTag>
</x:bTag>
<x:count att1="two">
<x:count att1="two">
<x:checkCount nested="3"/>
two
</x:count>
</x:count>
<x:checkCount nested="1"/>
</x:count>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_check_BodyContent_1.jsp
Index: tag_check_BodyContent_1.jsp
===================================================================
<%--
Check that BodyContent provides access to the proper information
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:verbatim how="string">
once upon a time
</x:verbatim>
<x:verbatim how="reader">
once upon a time
</x:verbatim>
<x:verbatim how="writeout">
once upon a time
</x:verbatim>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_check_BodyContent_2.jsp
Index: tag_check_BodyContent_2.jsp
===================================================================
<%--
Check that BodyContent provides access to the proper information
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:verbatim how="string">
one
<x:verbatim how="reader">
two
<x:verbatim how="writeout">
three
</x:verbatim>
four
</x:verbatim>
five
</x:verbatim>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_check_BodyContent_3.jsp
Index: tag_check_BodyContent_3.jsp
===================================================================
<%--
Check that BodyContent provides access to the proper information
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:verbatim how="reader">
one
<x:verbatim how="reader">
two
<x:verbatim how="reader">
three
</x:verbatim>
four
</x:verbatim>
five
</x:verbatim>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_check_BodyContent_4.jsp
Index: tag_check_BodyContent_4.jsp
===================================================================
<%--
Check that BodyContent provides access to the proper information
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:verbatim how="writeout">
one
<x:verbatim how="writeout">
two
<x:verbatim how="writeout">
three
</x:verbatim>
four
</x:verbatim>
five
</x:verbatim>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_check_BodyContent_5.jsp
Index: tag_check_BodyContent_5.jsp
===================================================================
<%--
Check that BodyContent provides access to the proper information
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:verbatim how="string">
one
<x:verbatim how="string">
two
<x:verbatim how="string">
three
</x:verbatim>
four
</x:verbatim>
five
</x:verbatim>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_check_comments_1.jsp
Index: tag_check_comments_1.jsp
===================================================================
<%--
Test that comments are processed correctly...
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count>
<%-- <x:count /> --%>
</x:count>
<x:checkCount start="1"/>
Correct count and correct processing of a JSP comment
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_check_comments_2.jsp
Index: tag_check_comments_2.jsp
===================================================================
<%--
Test that comments are processed correctly...
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count>
<%-- <x:count /> <%-- --%>
</x:count>
<x:checkCount start="1"/>
Correct count and handling of JSP comments
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_doEndTag_skip_page.jsp
Index: tag_doEndTag_skip_page.jsp
===================================================================
<%-- Test for doEndTag SKIP_PAGE --%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count skipPage="true">
once upon a time
</x:count>
<% if(true) throw new Error("Should not happen!"); %>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_doStart_eval_body_include.jsp
Index: tag_doStart_eval_body_include.jsp
===================================================================
<%-- Test for doStartTag EVAL_BODY_INCLUDE --%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count includeBody="true">
once upon a time
<x:count includeBody="false">
this will not show up
</x:count>
in a far far away kingdom...
</x:count>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_doStart_skip_body.jsp
Index: tag_doStart_skip_body.jsp
===================================================================
<%-- Test for doStartTag SKIP_BODY --%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count includeBody="true">
once upon a time
<x:count includeBody="false">
<% if(true) throw new Error("Call the errorpage"); %>
</x:count>
in a far far away kingdom...
</x:count>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_doStart_skip_page.jsp
Index: tag_doStart_skip_page.jsp
===================================================================
<%-- Test for doEndTag SKIP_PAGE. This should get the error page --%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:count skipPage="false">
once upon a time
</x:count>
<% if(true) throw new Error("Go to the Error page!"); %>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_ignoreBody.jsp
Index: tag_ignoreBody.jsp
===================================================================
<%--
Test for translation-time verification.
Test that a tag is passed (at translation time) correct TagInfo data.
Body will be ignored.
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly a='3' b="2" c="5" testLibInfo="true">
HI!
</x:silly>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_int.jsp
Index: tag_int.jsp
===================================================================
<%--
Test for defining an int variable.
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<%! public static Integer increment(Integer i) {
if (i != null)
return new Integer(i.intValue()+1);
return new Integer(0);
}
%>
<%! public static int valueof(Integer i) {
if (i != null)
return i.intValue();
return 0;
}
%>
<x:define id="i" scope="page" life="nested" >
(1) i was <%= i %>; <% i = increment(i); %> i is now <%= valueof(i) %>
</x:define>
<x:define id="i" scope="page" life="nested" >
(2) i was <%= i %>; <% i = increment(i); %> i is now <%= valueof(i) %>
</x:define>
<x:define id="i" scope="page" life="at_begin" >
(3) i was <%= i %>; <% i = increment(i); %> i is now <%= valueof(i) %>
</x:define>
(4) i was <%= i %>; <% i = increment(i); %> i is now <%= valueof(i) %>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_negative_1.jsp
Index: tag_negative_1.jsp
===================================================================
<%--
Test for translation-time verification
Fails because 3+2 != 6.
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly a="3" b="2" c="6"/>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_negative_2.jsp
Index: tag_negative_2.jsp
===================================================================
<%--
Test for translation-time verification
Should fail (at translation time) because the attributes are illegal
(a is not an integer)
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly a="3" b="a" c="6"/>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_negative_3.jsp
Index: tag_negative_3.jsp
===================================================================
<%--
Test for translation-time verification
Should fail because there is one attribute missing.
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly a="3" c="6"/>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_negative_4.jsp
Index: tag_negative_4.jsp
===================================================================
<%--
Test for translation-time verification
Should fail because required arguments are not passed.
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly/>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_nonempty_body_1.jsp
Index: tag_nonempty_body_1.jsp
===================================================================
<%--
Test for translation-time verification
Verify that a non-empty body can be passed
The body will be ignored.
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly a="3" b="2" c="5">
HI!
</x:silly>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_nonempty_body_2.jsp
Index: tag_nonempty_body_2.jsp
===================================================================
<%--
Test for translation-time verification
Verify that single and double quotes can be used.
Verify that a non-empty body can be passed
The body will be ignored
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly a='3' b="2" c="5">
HI!
</x:silly>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_positiveBody.jsp
Index: tag_positiveBody.jsp
===================================================================
<%--
Test for translation-time verification
Test that a tag is passed (at translation time) correct TagInfo data
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly a='3' b="2" c="5" testLibInfo="true">
HI!
<x:silly a='3' b="2" c="5" testLibInfo="true"/>
</x:silly>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/LifeCycle/tag_translationtime_verify_1.jsp
Index: tag_translationtime_verify_1.jsp
===================================================================
<%--
Test for translation-time verification
Succeed. 2+3 == 5.
--%>
<%@ taglib uri="/TestLib.tld" prefix="x" %>
<x:silly a="3" b="2" c="5"/>
sucess!