title: How to get a single value from a map in strurts 2
body: <p>I have a map which contains a list as its value.I am able to populate a list of values via the option box in a jsp page.But when i am trying to print a single value from the list it is not showing anything.</p>
  
  <pre class="lang-java prettyprint-override"><code>List&lt;UOM&gt; uomList=objectiveDelegate.getUOMList();
  
  System.out.println("-------&gt;&gt;"+uomList.size());
  
  for(UOM temp:uomList){
  
      System.out.println("tepmp result is"+temp.getId());
  }
  dataArr.put("uomList", uomList);
  return SUCCESS;
  </code></pre>
  
  <p>this dataArr is a map which contains a key and as a list as a value.So when i am  doing</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;div class="form-control div-pad"&gt;
      &lt;div class="divhalf1"&gt;UOM&lt;/div&gt;
      &lt;div class="divhalf2"&gt;
          &lt;s:select name="uom.name" id="uom_name" requiredLabel="true" 
                    list="%{dataArr['uomList']}" listValue="name" 
                    headerValue="Select UOM "&gt;
          &lt;/s:select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>the list is populating,but when i am doing </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;div class="form-control div-pad"&gt;
      &lt;div class="divhalf1" &gt;UOM ID &lt;/div&gt;
      &lt;div class="divhalf2" &gt;
          &lt;s:textfield name="uom.id" id="id" &gt;&lt;/s:textfield
      &lt;/div&gt;                             
  &lt;/div&gt;
  </code></pre>
  
  <p>the id is not populating.</p>