Sorry, this is the exception I get:
javax.servlet.ServletException: Cannot find bean c in any scope
> -----Original Message-----
> From: Basu, Abhijit (Abhi)
> Sent: Friday, April 30, 2004 9:58 AM
> To: '[EMAIL PROTECTED]'
> Subject: Drop down population question
>
> I am new to Struts and am having problems populating drop-downs from the
> database. I am actually getting a little frustrated with these tags, seems
> like
> no coding in java anymore. :)
>
>
> 1. ActionClass code excerpt:
>
> mBean.makeConnection();
>
> //get country list vector
> Vector v = (Vector)mBean.getCountryList();
>
> request.setAttribute("lstCountry", v)
>
> 2. JSP code excerpt:
>
> The vector lstCountry contains CountryObject beans that have getters
> and setters
> for country_id and name.
>
> <bean:define id="c" name="c" type="com.whatever.CountryObject"/>
> <html:select name="c" property="country" multiple="true">
> <html:options collection="lstCountry"
> property="country_id" labelProperty="name"/>
> </html:select>
>
> Any help is greatly appreciated!
>
> Thanks,
>
> Abhi
>
>
>