Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'doc/org.eclipse.jet.doc/references/taglibs/controlTags/chooseTag.html')
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/controlTags/chooseTag.html98
1 files changed, 0 insertions, 98 deletions
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/chooseTag.html b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/chooseTag.html
deleted file mode 100644
index 3bb0466..0000000
--- a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/chooseTag.html
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<HTML>
-<HEAD>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META name="GENERATOR" content="IBM Software Development Platform">
-<link rel="STYLESHEET" href="../../../book.css" charset="ISO-8859-1" type="text/css"/>
-<TITLE>&lt;c:choose&gt; - Standard JET2 Control Tags</TITLE>
-</HEAD>
-<BODY>
-<TABLE border="0" cellpadding="0" cellspacing="1" width="100%">
- <TBODY>
- <TR>
- <TH align="left">
- <P>&lt;c:choose&gt;</P></TH>
- <TH align="right"><A href="overview.html">Standard JET2 Control Tags</A></TH>
- </TR>
- </TBODY>
-</TABLE>
-<HR>
-<P><B>choose</B></P>
-<P><P> Define a group of mutually exclusive choices. The contents of this tag are restricted to 'when' and 'otherwise' tags only.<P><P>During execution of this tag, each 'when' and 'otherwise' tag is evaluated in sequence. If one of these tags evaluates to 'true', then any subsequent tags are ignored. A 'when' tag evaluates to 'true' if its 'test' attribute's XPath expression evaluates to 'true'. An 'otherwise' tag evaluates to 'true' if no preceeding 'when' (or 'otherwise') tag has evaluated to true.<P> </P>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Tag Summary</TH></TR>
- <TR>
- <TD width="10%">required</TD>
- <TD><SPAN style="font-family: monospace">
- &lt;c:choose&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
- &lt;/c:choose&gt;
- </SPAN></TD>
- </TR>
- <TR>
- <TD width="10%">full tag</TD>
- <TD><SPAN style="font-family: monospace">
- &lt;c:choose select=&quot;<I>value</I>&quot;&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
- &lt;/c:choose&gt;
- </SPAN></TD>
- </TR>
- </TBODY>
-</TABLE>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Optional Attributes</TH></TR>
- <TR>
- <TR>
- <TD width="10%">select</TD>
- <TD><BR> Optional test expression. When specified, each 'when' tag 'test' expression is tested for equality against this value. When not specified, this is the equivalent of the XPath expression 'true()'.<BR> </TD>
- </TR>
- </TBODY>
-</TABLE>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Example</TH></TR>
- <TR>
- <TD width="10%"></TD>
- <TD><SPAN style="font-family: monospace">
-<!-- Begin choose example -->
- &lt;%-- evaluate one of a number alternatives --%&gt;<BR>
- &lt;c:choose&gt;<br>
- &lt;c:when test="$var/@value = 1"&gt;<BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>handle case 1</I><BR>
- &lt;/c:when&gt;<BR>
- &lt;c:when test="$var/@value >= 2"&gt;<BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>handle case 2</I><BR>
- &lt;/c:when&gt;<BR>
- &lt;c:otherwise&gt;<BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>handle other cases</I><BR>
- &lt;/c:otherwise&gt;<BR>
- &lt;/c:choose&gt;<BR><BR>
-
- &lt;%-- evaluate an expression against constances --%&gt;<BR>
- &lt;c:choose select="$var/@num"&gt;<br>
- &lt;c:when test=" 'one' "&gt;<BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>handle case 'one' </I><BR>
- &lt;/c:when&gt;<BR>
- &lt;c:when test=" 'two' "&gt;<BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>handle case 'two' </I><BR>
- &lt;/c:when&gt;<BR>
- &lt;c:otherwise&gt;<BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>handle other cases</I><BR>
- &lt;/c:otherwise&gt;<BR>
- &lt;/c:choose&gt;
-
-<!-- End choose example -->
-</SPAN></TD>
- </TR>
- </TBODY>
-</TABLE>
-<P></P></BODY>
-</HTML>

Back to the top