1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5
<!-- Generated by javadoc on Fri Jun 15 16:53:36 PDT 2001 -->
7
Apache Struts API Documentation: Class OptionsTag
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
11
<BODY BGCOLOR="white">
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
<TR ALIGN="center" VALIGN="top">
21
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
22
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
23
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
24
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
25
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
26
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
27
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
31
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
37
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
38
<A HREF="../../../../../org/apache/struts/taglib/html/MultiboxTag.html"><B>PREV CLASS</B></A>
39
<A HREF="../../../../../org/apache/struts/taglib/html/OptionTag.html"><B>NEXT CLASS</B></A></FONT></TD>
40
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
41
<A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
42
<A HREF="OptionsTag.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
45
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
46
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
47
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
48
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
51
<!-- =========== END OF NAVBAR =========== -->
54
<!-- ======== START OF CLASS DATA ======== -->
57
org.apache.struts.taglib.html</FONT>
63
+--javax.servlet.jsp.tagext.TagSupport
65
+--<B>org.apache.struts.taglib.html.OptionsTag</B>
68
<DT><B>All Implemented Interfaces:</B> <DD>javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag</DD>
72
<DT>public class <B>OptionsTag</B><DT>extends javax.servlet.jsp.tagext.TagSupport</DL>
75
Tag for creating multiple <select> options from a collection. The
76
associated values displayed to the user may optionally be specified by a
77
second collection, or will be the same as the values themselves. Each
78
collection may be an array of objects, a Collection, an Enumeration,
79
an Iterator, or a Map.
80
<b>NOTE</b> - This tag requires a Java2 (JDK 1.2 or later) platform.
83
<DT><B>Author: </B><DD>Florent Carpentier, Craig McClanahan</DD>
84
<DT><B>See Also: </B><DD><A HREF="../../../../../serialized-form.html#org.apache.struts.taglib.html.OptionsTag">Serialized Form</A></DL>
88
<!-- ======== INNER CLASS SUMMARY ======== -->
91
<!-- =========== FIELD SUMMARY =========== -->
93
<A NAME="field_summary"><!-- --></A>
94
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
95
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
96
<TD COLSPAN=2><FONT SIZE="+2">
97
<B>Field Summary</B></FONT></TD>
99
<TR BGCOLOR="white" CLASS="TableRowColor">
100
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
101
<CODE>protected java.lang.String</CODE></FONT></TD>
102
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#collection">collection</A></B></CODE>
105
The name of the collection containing beans that have properties to
106
provide both the values and the labels (identified by the
107
<code>property</code> and <code>labelProperty</code> attributes).</TD>
109
<TR BGCOLOR="white" CLASS="TableRowColor">
110
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
111
<CODE>protected java.lang.String</CODE></FONT></TD>
112
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#labelName">labelName</A></B></CODE>
115
The name of the bean containing the labels collection.</TD>
117
<TR BGCOLOR="white" CLASS="TableRowColor">
118
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
119
<CODE>protected java.lang.String</CODE></FONT></TD>
120
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#labelProperty">labelProperty</A></B></CODE>
123
The bean property containing the labels collection.</TD>
125
<TR BGCOLOR="white" CLASS="TableRowColor">
126
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127
<CODE>protected static <A HREF="../../../../../org/apache/struts/util/MessageResources.html">MessageResources</A></CODE></FONT></TD>
128
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#messages">messages</A></B></CODE>
131
The message resources for this package.</TD>
133
<TR BGCOLOR="white" CLASS="TableRowColor">
134
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135
<CODE>protected java.lang.String</CODE></FONT></TD>
136
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#name">name</A></B></CODE>
139
The name of the bean containing the values collection.</TD>
141
<TR BGCOLOR="white" CLASS="TableRowColor">
142
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143
<CODE>protected java.lang.String</CODE></FONT></TD>
144
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#property">property</A></B></CODE>
147
The name of the property to use to build the values collection.</TD>
150
<A NAME="fields_inherited_from_class_javax.servlet.jsp.tagext.TagSupport"><!-- --></A>
151
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
152
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
153
<TD><B>Fields inherited from class javax.servlet.jsp.tagext.TagSupport</B></TD>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD><CODE>id, pageContext, parent, values</CODE></TD>
159
<A NAME="fields_inherited_from_class_javax.servlet.jsp.tagext.IterationTag"><!-- --></A>
160
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
161
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
162
<TD><B>Fields inherited from interface javax.servlet.jsp.tagext.IterationTag</B></TD>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD><CODE>EVAL_BODY_AGAIN</CODE></TD>
168
<A NAME="fields_inherited_from_class_javax.servlet.jsp.tagext.Tag"><!-- --></A>
169
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
170
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
171
<TD><B>Fields inherited from interface javax.servlet.jsp.tagext.Tag</B></TD>
173
<TR BGCOLOR="white" CLASS="TableRowColor">
174
<TD><CODE>EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE</CODE></TD>
178
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
180
<A NAME="constructor_summary"><!-- --></A>
181
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
182
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
183
<TD COLSPAN=2><FONT SIZE="+2">
184
<B>Constructor Summary</B></FONT></TD>
186
<TR BGCOLOR="white" CLASS="TableRowColor">
187
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#OptionsTag()">OptionsTag</A></B>()</CODE>
190
</TD>
194
<!-- ========== METHOD SUMMARY =========== -->
196
<A NAME="method_summary"><!-- --></A>
197
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
198
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199
<TD COLSPAN=2><FONT SIZE="+2">
200
<B>Method Summary</B></FONT></TD>
202
<TR BGCOLOR="white" CLASS="TableRowColor">
203
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204
<CODE>protected void</CODE></FONT></TD>
205
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#addOption(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean)">addOption</A></B>(java.lang.StringBuffer sb,
206
java.lang.String value,
207
java.lang.String label,
208
boolean matched)</CODE>
211
Add an option element to the specified StringBuffer based on the
212
specified parameters.</TD>
214
<TR BGCOLOR="white" CLASS="TableRowColor">
215
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216
<CODE> int</CODE></FONT></TD>
217
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#doEndTag()">doEndTag</A></B>()</CODE>
220
Process the end of this tag.</TD>
222
<TR BGCOLOR="white" CLASS="TableRowColor">
223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224
<CODE> int</CODE></FONT></TD>
225
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#doStartTag()">doStartTag</A></B>()</CODE>
228
Process the start of this tag.</TD>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232
<CODE> java.lang.String</CODE></FONT></TD>
233
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#getCollection()">getCollection</A></B>()</CODE>
236
</TD>
238
<TR BGCOLOR="white" CLASS="TableRowColor">
239
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240
<CODE>protected java.util.Iterator</CODE></FONT></TD>
241
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#getIterator(java.lang.String, java.lang.String)">getIterator</A></B>(java.lang.String name,
242
java.lang.String property)</CODE>
245
Return an iterator for the option labels or values, based on our
246
configured properties.</TD>
248
<TR BGCOLOR="white" CLASS="TableRowColor">
249
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250
<CODE> java.lang.String</CODE></FONT></TD>
251
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#getLabelName()">getLabelName</A></B>()</CODE>
254
</TD>
256
<TR BGCOLOR="white" CLASS="TableRowColor">
257
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258
<CODE> java.lang.String</CODE></FONT></TD>
259
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#getLabelProperty()">getLabelProperty</A></B>()</CODE>
262
</TD>
264
<TR BGCOLOR="white" CLASS="TableRowColor">
265
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
266
<CODE> java.lang.String</CODE></FONT></TD>
267
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#getName()">getName</A></B>()</CODE>
270
</TD>
272
<TR BGCOLOR="white" CLASS="TableRowColor">
273
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
274
<CODE> java.lang.String</CODE></FONT></TD>
275
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#getProperty()">getProperty</A></B>()</CODE>
278
</TD>
280
<TR BGCOLOR="white" CLASS="TableRowColor">
281
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
282
<CODE> void</CODE></FONT></TD>
283
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#release()">release</A></B>()</CODE>
286
Release any acquired resources.</TD>
288
<TR BGCOLOR="white" CLASS="TableRowColor">
289
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
290
<CODE> void</CODE></FONT></TD>
291
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#setCollection(java.lang.String)">setCollection</A></B>(java.lang.String collection)</CODE>
294
</TD>
296
<TR BGCOLOR="white" CLASS="TableRowColor">
297
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298
<CODE> void</CODE></FONT></TD>
299
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#setLabelName(java.lang.String)">setLabelName</A></B>(java.lang.String labelName)</CODE>
302
</TD>
304
<TR BGCOLOR="white" CLASS="TableRowColor">
305
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306
<CODE> void</CODE></FONT></TD>
307
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#setLabelProperty(java.lang.String)">setLabelProperty</A></B>(java.lang.String labelProperty)</CODE>
310
</TD>
312
<TR BGCOLOR="white" CLASS="TableRowColor">
313
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
314
<CODE> void</CODE></FONT></TD>
315
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#setName(java.lang.String)">setName</A></B>(java.lang.String name)</CODE>
318
</TD>
320
<TR BGCOLOR="white" CLASS="TableRowColor">
321
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
322
<CODE> void</CODE></FONT></TD>
323
<TD><CODE><B><A HREF="../../../../../org/apache/struts/taglib/html/OptionsTag.html#setProperty(java.lang.String)">setProperty</A></B>(java.lang.String property)</CODE>
326
</TD>
329
<A NAME="methods_inherited_from_class_javax.servlet.jsp.tagext.TagSupport"><!-- --></A>
330
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
331
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
332
<TD><B>Methods inherited from class javax.servlet.jsp.tagext.TagSupport</B></TD>
334
<TR BGCOLOR="white" CLASS="TableRowColor">
335
<TD><CODE>doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue</CODE></TD>
338
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
339
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
340
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
341
<TD><B>Methods inherited from class java.lang.Object</B></TD>
343
<TR BGCOLOR="white" CLASS="TableRowColor">
344
<TD><CODE><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</CODE></TD>
350
<!-- ============ FIELD DETAIL =========== -->
352
<A NAME="field_detail"><!-- --></A>
353
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
354
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
355
<TD COLSPAN=1><FONT SIZE="+2">
356
<B>Field Detail</B></FONT></TD>
360
<A NAME="messages"><!-- --></A><H3>
363
protected static <A HREF="../../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>messages</B></PRE>
365
<DD>The message resources for this package.</DL>
368
<A NAME="collection"><!-- --></A><H3>
371
protected java.lang.String <B>collection</B></PRE>
373
<DD>The name of the collection containing beans that have properties to
374
provide both the values and the labels (identified by the
375
<code>property</code> and <code>labelProperty</code> attributes).</DL>
378
<A NAME="labelName"><!-- --></A><H3>
381
protected java.lang.String <B>labelName</B></PRE>
383
<DD>The name of the bean containing the labels collection.</DL>
386
<A NAME="labelProperty"><!-- --></A><H3>
389
protected java.lang.String <B>labelProperty</B></PRE>
391
<DD>The bean property containing the labels collection.</DL>
394
<A NAME="name"><!-- --></A><H3>
397
protected java.lang.String <B>name</B></PRE>
399
<DD>The name of the bean containing the values collection.</DL>
402
<A NAME="property"><!-- --></A><H3>
405
protected java.lang.String <B>property</B></PRE>
407
<DD>The name of the property to use to build the values collection.</DL>
409
<!-- ========= CONSTRUCTOR DETAIL ======== -->
411
<A NAME="constructor_detail"><!-- --></A>
412
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
413
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
414
<TD COLSPAN=1><FONT SIZE="+2">
415
<B>Constructor Detail</B></FONT></TD>
419
<A NAME="OptionsTag()"><!-- --></A><H3>
422
public <B>OptionsTag</B>()</PRE>
426
<!-- ============ METHOD DETAIL ========== -->
428
<A NAME="method_detail"><!-- --></A>
429
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
430
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
431
<TD COLSPAN=1><FONT SIZE="+2">
432
<B>Method Detail</B></FONT></TD>
436
<A NAME="getCollection()"><!-- --></A><H3>
439
public java.lang.String <B>getCollection</B>()</PRE>
444
<A NAME="setCollection(java.lang.String)"><!-- --></A><H3>
447
public void <B>setCollection</B>(java.lang.String collection)</PRE>
452
<A NAME="getLabelName()"><!-- --></A><H3>
455
public java.lang.String <B>getLabelName</B>()</PRE>
460
<A NAME="setLabelName(java.lang.String)"><!-- --></A><H3>
463
public void <B>setLabelName</B>(java.lang.String labelName)</PRE>
468
<A NAME="getLabelProperty()"><!-- --></A><H3>
469
getLabelProperty</H3>
471
public java.lang.String <B>getLabelProperty</B>()</PRE>
476
<A NAME="setLabelProperty(java.lang.String)"><!-- --></A><H3>
477
setLabelProperty</H3>
479
public void <B>setLabelProperty</B>(java.lang.String labelProperty)</PRE>
484
<A NAME="getName()"><!-- --></A><H3>
487
public java.lang.String <B>getName</B>()</PRE>
492
<A NAME="setName(java.lang.String)"><!-- --></A><H3>
495
public void <B>setName</B>(java.lang.String name)</PRE>
500
<A NAME="getProperty()"><!-- --></A><H3>
503
public java.lang.String <B>getProperty</B>()</PRE>
508
<A NAME="setProperty(java.lang.String)"><!-- --></A><H3>
511
public void <B>setProperty</B>(java.lang.String property)</PRE>
516
<A NAME="doStartTag()"><!-- --></A><H3>
519
public int <B>doStartTag</B>()
520
throws javax.servlet.jsp.JspException</PRE>
522
<DD>Process the start of this tag.<DD><DL>
523
<DT><B>Overrides:</B><DD><CODE>doStartTag</CODE> in class <CODE>javax.servlet.jsp.tagext.TagSupport</CODE></DL>
526
<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - if a JSP exception has occurred</DL>
531
<A NAME="doEndTag()"><!-- --></A><H3>
534
public int <B>doEndTag</B>()
535
throws javax.servlet.jsp.JspException</PRE>
537
<DD>Process the end of this tag.<DD><DL>
538
<DT><B>Overrides:</B><DD><CODE>doEndTag</CODE> in class <CODE>javax.servlet.jsp.tagext.TagSupport</CODE></DL>
541
<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - if a JSP exception has occurred</DL>
546
<A NAME="release()"><!-- --></A><H3>
549
public void <B>release</B>()</PRE>
551
<DD>Release any acquired resources.<DD><DL>
552
<DT><B>Overrides:</B><DD><CODE>release</CODE> in class <CODE>javax.servlet.jsp.tagext.TagSupport</CODE></DL>
557
<A NAME="addOption(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
560
protected void <B>addOption</B>(java.lang.StringBuffer sb,
561
java.lang.String value,
562
java.lang.String label,
563
boolean matched)</PRE>
565
<DD>Add an option element to the specified StringBuffer based on the
566
specified parameters.<DD><DL>
567
<DT><B>Parameters:</B><DD><CODE>sb</CODE> - StringBuffer accumulating our results<DD><CODE>value</CODE> - Value to be returned to the server for this option<DD><CODE>label</CODE> - Value to be shown to the user for this option<DD><CODE>matched</CODE> - Should this value be marked as selected?</DL>
572
<A NAME="getIterator(java.lang.String, java.lang.String)"><!-- --></A><H3>
575
protected java.util.Iterator <B>getIterator</B>(java.lang.String name,
576
java.lang.String property)
577
throws javax.servlet.jsp.JspException</PRE>
579
<DD>Return an iterator for the option labels or values, based on our
580
configured properties.<DD><DL>
581
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the bean attribute (if any)<DD><CODE>property</CODE> - Name of the bean property (if any)<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - if an error occurs</DL>
584
<!-- ========= END OF CLASS DATA ========= -->
587
<!-- ========== START OF NAVBAR ========== -->
588
<A NAME="navbar_bottom"><!-- --></A>
589
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
591
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
592
<A NAME="navbar_bottom_firstrow"><!-- --></A>
593
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
594
<TR ALIGN="center" VALIGN="top">
595
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
596
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
597
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
598
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
599
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
600
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
601
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
605
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
611
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
612
<A HREF="../../../../../org/apache/struts/taglib/html/MultiboxTag.html"><B>PREV CLASS</B></A>
613
<A HREF="../../../../../org/apache/struts/taglib/html/OptionTag.html"><B>NEXT CLASS</B></A></FONT></TD>
614
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
615
<A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
616
<A HREF="OptionsTag.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
619
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
620
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
621
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
622
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
625
<!-- =========== END OF NAVBAR =========== -->
628
Copyright � 2000-2001 - Apache Software Foundation