in the html code,

<html:select name="piActionForm" property="providerId2" size="1" >
             <html:options collection="providerList" property="value"
belProperty="label"/></html:select>

I populate providerList in the jsp code, using

  pageContext.setAttribute("providerList",
ssUtils.getProvidersForDropDown(sPracticeId));

and the method in ssUtils returns an ArrayList of beans each of which
contain a label and a value. 

hope that helps

-VA 

-----Original Message-----
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 11:24 AM
To: struts-user@jakarta. apache. org (E-mail)
Subject: Can another bean besides the FormBean be used inside a Form?


Hi,

I have a form  which has a SELECT type field. The value selected from the
Select options should set the corresponding field in the FormBean but the
options available in this Select field are in another bean in the session
scope. How do I  specify such a Select field using <html:select> &
<html:options> tags?

TIA

-Nimmi

Reply via email to