Hi,

    <html:select property="depid" size="1">
      <logic:iterate id="department" name="departments">
        <html:option value="">
          <bean:write name="department" property="depname" />
        </html:option>
      </logic:iterate>
    </html:select>


    Here I am iterating through an ArrayList (departments)
which contains department_id and department_name.

    Here I want to populate the html:select option with the
department details. I am able to display the department_nm
in my browser, but I don't know how to store department_id
in the value="" section of the code.

    Please help.

    Thank you.

Vishal


Reply via email to