0

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?

Edited by peter_budo: Keep It Clear - Do wrap your programming code blocks within [code] ... [/code] tags

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Ambislm
0

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>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.