title: set default value in dropdown using struts
body: <p>I have a form  that has a field functional area that is a drop down 
  I am inserting data in database by selecting data from drop down (drop down get data from database). Now I  am updating data so I want set drop down default. value have to  that inserted data from drop down </p>
  
  <p>I am using following code but I am not getting right  value 
  
        Functional Area:
     
       </p>
  
  <pre><code>      &lt;s:textfield name="funArea" /&gt;  // getting  data from database
  
         &lt;s:select id="funarea" list="functionList" name="functionalArea" headerKey="-1" 
          cssStyle="width:162px;" headerValue="&lt;s:textfield name='funArea'/&gt;" 
            onchange="showState(this.value)"&gt;  &lt;/s:select&gt;   // setting database value on drop down's default selected value 
              &lt;/td&gt;
  </code></pre>
  
  <p>but i am getting this
   </p>