For your drop-down:

<select name="country">
<logic:iterate id="countries" name="yourArrayList" scope="request">
	<option value="<bean:write name="countries" />"><bean:write name="countries" /></option>
</logic:iterate>
</select>

Let me know if you need more help.

-----Original Message-----
From: struts-user-digest-help@jakarta.apache.org
[mailto:struts-user-digest-help@jakarta.apache.org]
Sent: Monday, October 20, 2003 1:15 PM
To: struts-user@jakarta.apache.org
Cc: rajatp@centergroupinc.com
Subject: Help with form bean [urgent]

Ok, yet another attempt to explain my problem. Say I have a registration
form and I have the list of countries stored in an ArrayList with each
element as a key, value pair (Map). Now when I call the registration
form. The actionForm for the the registration form has one field country
(with both the getter and setter). How do I write the bean tag, so that
the ArrayList (which is placed in the request scope already) is taken to
render a dropdown menu of countries and the value of the selected item
goes into the countryId property of the registration ActionForm.

If ur still with me so far, then yet another question, how do do the
same in case I want to user to select the countries from a checkbox
(could be possibly multiple countries) if possible please give me a
sample code to learn as well.

My project deadline is coming close and I am stuck with conceptual
problems. Please consider this as urgent call for help.

Thanks in advance.

Rajat Pandit | rajatp@centergroupinc.com
+91 612 3117606
[ Developer and Part Time Human Being]