read values as a dropdown using property file
<p>here I need to read values from property file instead of hardcoding. i have defined two key values wid comma separated values which need to b displayed as drop down in "quote.properties" file and in"LocationSummaryAction.java" am making two arrays and tokanizing dem as "svcLocAct","svcLocFun"... now i need to remove the hard coded dropdowns from"quoteLocationManagerBody.jsp"... i ned to set the values and read dem... i dono the syntax and all am nt getting how to do.. pls help me</p>

<p>here is the code</p>

<p><strong>quote.properties</strong></p>

<pre><code>LOCATION_SUMMARY_FUNCTION = Select Functions/Tools,Company Profile,Oppty Locations,Different Oppty,Loop TrackId Profile,Inventory,Data Center List,Upload Locations,Customer AccountId,Customer Name
LOCATION_SUMMARY_ACTION = Select Location Action,Edit Location,Delete Location,Import Location,Upload Location,Validate Location
</code></pre>

<p><strong>LocationSummaryAction.java</strong></p>

<pre><code>private String splitServiceAndImportLocation(LocationSummaryForm summaryForm){
    logger.debug(" split method begins : ");
    String srvcLocActns = PropertyFileReader.getProperty("quoting.quote", "LOCATION_SUMMARY_ACTION");
    String srvcLocFunctns = PropertyFileReader.getProperty("quoting.quote", "LOCATION_SUMMARY_FUNCTION");
    ArrayList&lt;String&gt; svcLocAct = new ArrayList&lt;String&gt;();
    ArrayList&lt;String&gt; svcLocFun = new ArrayList&lt;String&gt;();

    logger.debug(" srvcLocActns : "+ srvcLocActns + "  srvcLocFunctns : "+ srvcLocFunctns);
    StringTokenizer st= new StringTokenizer(srvcLocActns,",");
    while (st.hasMoreTokens())
    {
        String t = st.nextToken();
        svcLocAct.add(t);
    }
    logger.debug("The service Location actions are :" + svcLocAct);
    StringTokenizer stk= new StringTokenizer(srvcLocActns,",");
    while (st.hasMoreTokens())
    {
        String t = stk.nextToken();
        svcLocFun.add(t);
    }
    logger.debug("The service Location actions are :" + svcLocFun); 
    logger.debug("Exit from splitServiceLocation :" + svcLocFun); 
    return "success";
}
</code></pre>

<p><strong>quoteLocationManagerBody.jsp</strong></p>

<pre><code>&lt;table id="locSummary"&gt;&lt;/table&gt; 
&lt;div id="pager1" &gt;&lt;/div&gt;
&lt;table align ="center" width ="100%" class ="DataEntryLabel" id="funcTbl"&gt;
    &lt;tr&gt;
        &lt;td width ="20%" align="left"&gt;
            &lt;input type="button" value="Add New Location" id="addLocation" class = "input"/&gt;
        &lt;/td&gt;
        &lt;td width ="35%" align="right"&gt;
            &lt;label&gt;Location Action :&lt;/label&gt;
            &lt;select id ="selAction" name ="selAction" class ="DataEntryField"&gt;
                &lt;option value ="Select"&gt;Select Location Action&lt;/option&gt;
                &lt;option value ="Edit"&gt;Edit Location&lt;/option&gt;
                &lt;option value ="Delete"&gt;Delete Location&lt;/option&gt;
                &lt;option value ="Validate"&gt;Validate Location&lt;/option&gt;
            &lt;/select&gt;
            &lt;input type="button" value="Go" id="actionBtn" class = "input"/&gt;
        &lt;/td&gt;
        &lt;td width ="35%" align ="right"&gt;
            &lt;label&gt;Functions/Tools :&lt;/label&gt;
            &lt;select id ="selFunction" name ="selFunction" class ="DataEntryField"&gt;
                &lt;option value ="Select"&gt;Select Functions/Tools&lt;/option&gt;
                &lt;optgroup label="Import From"&gt;
                    &lt;option value ="Company Profile"&gt;Company Profile&lt;/option&gt;
                    &lt;option value ="Oppty Locations"&gt;Oppty Locations&lt;/option&gt;
                    &lt;option value ="Different Oppty"&gt;Different Oppty&lt;/option&gt;
                    &lt;option value ="Loop TrackId Profile"&gt;Loop TrackId Profile&lt;/option&gt;
                    &lt;option value ="Inventory"&gt;Inventory&lt;/option&gt;
                    &lt;option value ="Data Center List"&gt;Data Center List&lt;/option&gt; 
                    &lt;option value ="Upload Locations"&gt;Upload Locations&lt;/option&gt;
                    &lt;option value ="Customer AccountId"&gt;Customer AccountId&lt;/option&gt; 
                    &lt;option value ="Customer Name"&gt;Customer Name&lt;/option&gt;
                &lt;/optgroup&gt;             
            &lt;/select&gt;
            &lt;input type="button" value="Go" id="functionBtn" class = "input"/&gt;  
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
