Modified: struts/el/trunk/web/exercise-taglib/logic-iterate.jsp URL: http://svn.apache.org/viewcvs/struts/el/trunk/web/exercise-taglib/logic-iterate.jsp?rev=376788&r1=376787&r2=376788&view=diff ============================================================================== --- struts/el/trunk/web/exercise-taglib/logic-iterate.jsp (original) +++ struts/el/trunk/web/exercise-taglib/logic-iterate.jsp Fri Feb 10 10:27:39 2006 @@ -1,138 +1,156 @@ +<%@ page import="javax.servlet.jsp.PageContext"%> <%@ page language="java" %> -<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> -<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> +<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> +<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> <%@ taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic-el" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> -Test struts logic-el Iterate Tag + Test struts logic-el Iterate Tag + <% - { - java.util.ArrayList list = new java.util.ArrayList(); - list.add("First"); - list.add("Second"); - list.add("Third"); - list.add("Fourth"); - list.add("Fifth"); - pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE); - - int intArray[] = new int[] - { 0, 10, 20, 30, 40 }; - pageContext.setAttribute("intArray", intArray, PageContext.PAGE_SCOPE); - } + { + java.util.ArrayList list = new java.util.ArrayList(); + list.add("First"); + list.add("Second"); + list.add("Third"); + list.add("Fourth"); + list.add("Fifth"); + pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE); + + int intArray[] = new int[] + { 0, 10, 20, 30, 40 }; + pageContext + .setAttribute("intArray", intArray, PageContext.PAGE_SCOPE); + } %>
-

Test struts logic-el Iterate Tag

+

Test struts logic-el Iterate Tag

- +

Test 1 - Iterate Over A String Array [0..4]

    - -
  1.  []
  2. -
    + +
  3.  []
  4. +

Test 2 - Iterate Over A String Array [0..2]

    - -
  1.  []
  2. -
    + +
  3.  []
  4. +

Test 3 - Iterate Over A String Array [3..4]

    - -
  1.  []
  2. -
    + +
  3.  []
  4. +

Test 4 - Iterate Over A String Array [1..3]

    - -
  1.  []
  2. -
    + +
  3.  []
  4. +

Test 5 - Iterate Over an Array List

    - -
  1.  []
  2. -
    + +
  3.  [] +
  4. +

Test 6 - Iterate Over an Array List [0..2]

    - -
  1.  []
  2. -
    + +
  3.  [] +
  4. +

Test 7 - Iterate Over an Array List [2..4]

    - -
  1.  []
  2. -
    + +
  3.  [] +
  4. +

Test 8 - Iterate Over an int array

    - -
  1.  []
  2. -
    + +
  3.  [] +
  4. +

Test 9 - Iterate Over an int array [0..2]

    - -
  1.  []
  2. -
    + +
  3.  [] +
  4. +

Test 10 - Iterate Over an int array [2..4]

    - -
  1.  []
  2. -
    + +
  3.  [] +
  4. +

Test 11 - Iterate Over HTTP Headers

- - - - - - - - - - + + + + + + + + + + Modified: struts/el/trunk/web/exercise-taglib/logic-match.jsp URL: http://svn.apache.org/viewcvs/struts/el/trunk/web/exercise-taglib/logic-match.jsp?rev=376788&r1=376787&r2=376788&view=diff ============================================================================== --- struts/el/trunk/web/exercise-taglib/logic-match.jsp (original) +++ struts/el/trunk/web/exercise-taglib/logic-match.jsp Fri Feb 10 10:27:39 2006 @@ -1,315 +1,327 @@ <%@ page language="java" %> -<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> -<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> +<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> +<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> <%@ taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic-el" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> -Test struts logic-el Match Tags + Test struts logic-el Match Tags +
-

Test struts logic-el Match Tags

+

Test struts logic-el Match Tags

- + <% - pageContext.setAttribute("string", "String test value"); + pageContext.setAttribute("string", "String test value"); %>
KeyValue
KeyValue
- + - - + + - <%-- This isn't an exact parallel. With "bean:cookie", you can specify a - default value. That would take another step with this. --%> + <%-- This isn't an exact parallel. With "bean:cookie", you can specify a + default value. That would take another step with this. --%> - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - +
Test Type Variable Content Value Content Correct Value Test Test Result
Cookie / Any 0 contains - - - <%-- The functionality of "logic:match" will eventually be available - through a string function in the EL expression. --%> - - match - - - notMatch - - - - missing - - + + + <%-- The functionality of "logic:match" will eventually be available + through a string function in the EL expression. --%> + + match + + + notMatch + + + + missing + +
Cookie / End 0 ends with - - - - match - - - notMatch - - - - missing - - + + + + match + + + notMatch + + + + missing + +
Cookie / Start 0 starts with - - - - match - - - notMatch - - - - missing - - + + + + match + + + notMatch + + + + missing + +
Header / Any Mozilla contains - - - - match - - - notMatch - - - - missing - - + + + + match + + + notMatch + + + + missing + +
Header / End Mozilla ends with - - - - match - - - notMatch - - - - missing - - + + + + match + + + notMatch + + + + missing + +
Header / Start Mozilla starts with - - - - match - - - notMatch - - - - missing - - + + + + match + + + notMatch + + + + missing + +
Name / Any value contains - - match - - - notMatch - + + match + + + notMatch +
Name / End value ends with - - match - - - notMatch - + + match + + + notMatch +
Name / Start value starts with - - match - - - notMatch - + + match + + + notMatch +
Parameter / Any value1 contains - - - - match - - - notMatch - - - - missing - - + + + + match + + + notMatch + + + + missing + +
Parameter / End value1 ends with - - - - match - - - notMatch - - - - missing - - + + + + match + + + notMatch + + + + missing + +
Parameter / Start value1 starts with - - - - match - - - notMatch - - - - missing - - + + + + match + + + notMatch + + + + missing + +
Property / Any FOO contains - - match - - - notMatch - + + match + + + notMatch +
Property / End FOO ends with - - match - - - notMatch - + + match + + + notMatch +
Property / Start FOO starts with - - match - - - notMatch - + + match + + + notMatch +
Modified: struts/el/trunk/web/exercise-taglib/logic-present.jsp URL: http://svn.apache.org/viewcvs/struts/el/trunk/web/exercise-taglib/logic-present.jsp?rev=376788&r1=376787&r2=376788&view=diff ============================================================================== --- struts/el/trunk/web/exercise-taglib/logic-present.jsp (original) +++ struts/el/trunk/web/exercise-taglib/logic-present.jsp Fri Feb 10 10:27:39 2006 @@ -1,188 +1,190 @@ <%@ page language="java" %> -<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> -<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> +<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> +<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> <%@ taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic-el" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> -Test Struts presence tags and Replacements + Test Struts presence tags and Replacements +
-

Test Struts presence tags and Replacements

+

Test Struts presence tags and Replacements

- + - + - - + + - - + + - - + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - +
Test Type Correct Value Test Result
Role notPresent - - present - - - notPresent - + + present + + + notPresent +
Bean present - - - present - - - notPresent - - + + + present + + + notPresent + +
Bean notPresent - - - present - - - notPresent - - + + + present + + + notPresent + +
Cookie - - - present - - - notPresent - - - - - - present - - - notPresent - - + + + present + + + notPresent + + + + + + present + + + notPresent + +
Cookie notPresent - - - present - - - notPresent - - + + + present + + + notPresent + +
Header present - - - present - - - notPresent - - + + + present + + + notPresent + +
Header notPresent - - - present - - - notPresent - - + + + present + + + notPresent + +
Parameter present - - - present - - - notPresent - - + + + present + + + notPresent + +
Parameter notPresent - - - present - - - notPresent - - + + + present + + + notPresent + +
Property present - - - present - - - notPresent - - + + + present + + + notPresent + +
Property notPresent - - - present - - - notPresent - - + + + present + + + notPresent + +
Modified: struts/el/trunk/web/exercise-taglib/logic-redirect.jsp URL: http://svn.apache.org/viewcvs/struts/el/trunk/web/exercise-taglib/logic-redirect.jsp?rev=376788&r1=376787&r2=376788&view=diff ============================================================================== --- struts/el/trunk/web/exercise-taglib/logic-redirect.jsp (original) +++ struts/el/trunk/web/exercise-taglib/logic-redirect.jsp Fri Feb 10 10:27:39 2006 @@ -1,47 +1,51 @@ <%@ page language="java" %> -<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> -<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> -<%@ taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic-el" %> +<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> +<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> +<%@ taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic-el" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> - - - - - - - - - - - + + + + + + + + + + + - - Test Struts <logic:redirect> tag - - -
-

Test Struts <logic:redirect> tag

-
- - - - - - - - - - -
- Redirect with Forward -
- Redirect with Href -
- Redirect with Page -
- + + Test Struts <logic:redirect> tag + + + +
+

Test Struts <logic:redirect> tag

+
+ + + + + + + + + + +
+ Redirect with + Forward +
+ Redirect with + Href +
+ Redirect with + Page +
+
Modified: struts/el/trunk/web/exercise-taglib/showSource.jsp URL: http://svn.apache.org/viewcvs/struts/el/trunk/web/exercise-taglib/showSource.jsp?rev=376788&r1=376787&r2=376788&view=diff ============================================================================== --- struts/el/trunk/web/exercise-taglib/showSource.jsp (original) +++ struts/el/trunk/web/exercise-taglib/showSource.jsp Fri Feb 10 10:27:39 2006 @@ -1,20 +1,21 @@ <%@ page language="java" %> -<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> -<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> +<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %> +<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> - - Source for page: <c:out value="${param.path}"/> - - -
-

Source for page:

-
- -
- -
-
- + + Source for page: <c:out value="${param.path}"/> + + + +
+

Source for page:

+
+ +
+ +
+
+
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org