Hello john, I used to use this method, but the problem was that this way I am you unable to retain the state of the form in case of validate() method returning a false.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 12:23 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Help with form bean [urgent] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 1:15 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] 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 | [EMAIL PROTECTED] +91 612 3117606 [ Developer and Part Time Human Being] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]