> Team,
>
> I need your help. I'm trying to build a select tag that whose value is a
> number and display value is a string.
> For example,
>
> <select name="sApprover">
> <option value="0" selected>Select Your Approver</option>
> <option value="1">James Marshall</option>
> <option value="2">John Clark</option>
>
> </select>
>
> I know I have to do something like this.
>
> <html:select property="selectedValue">
> <html:options collection="bean" property="idValue"
> labelProperty="displayValue"/>
> </html:select>
>
> I know that the property in the select tag is the value that is selected
> by the user. What is bean, property and labelProperty in the options tag?
> Is it just a regular javabean which has idValue and displayValue as member
> variables along with the corresponding setter and getter methods?
>
> just like this? If it is, what do i have to do to populate the values?
>
>
> Public Class CollectionBean
> {
> Private int idValue=0;
> Private String displayValue="";
>
> public void setidValue(int idValue)
> {
> this.idValue=idValue;
> }
>
> public int getidValue()
> {
> return this.idValue;
> }
>
> public void setdisplayValue(String displayValue)
> {
> this.displayValue=displayValue;
> }
>
> public int getdisplayValue()
> {
> return this.displayValue;
> }
>
> }
>
>
> }
>
> Thanks for your help
>
>
**********************************************************************
Notice: The area code for the Wal-Mart Bentonville General
Office in the US has changed from 501 to 479. Please make
sure that you are dialing 479 when making calls to any
General Office location.
**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the individual or entity to
whom they are addressed. If you have received this email
in error destroy it immediately.
**********************************************************************
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>