I have 3 combobox in my index.jsp file. I have filled first 2 combobox with data's from database... Now i have to fill 3rd combobox with the values which i have in java file such as:

private static String[] types = {
        "Vehicle Reporting",
        "Vehicle Revisits",
        "RO - JDP Count"
        };

private static String[] fields = {
        "ro_count",
        "ro_revisit_count",
        "ro_jdp_count"
       };

where for each type i'll return field values...
can any one help how to do this task?

I have 3 combobox in my index.jsp file. I have filled first 2 combobox with data's from database... Now i have to fill 3rd combobox with the values which i have in java file such as:

private static String[] types = {
        "Vehicle Reporting",
        "Vehicle Revisits",
        "RO - JDP Count"
        };

private static String[] fields = {
        "ro_count",
        "ro_revisit_count",
        "ro_jdp_count"
       };

How i can assign this values to combobox:

<select name="hcountry" size="4">
    <option value="usa" selected>United States</option>
   </select>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.