title: In spring mvc display with default values in dropdown in th jsp
body: <p>I have table of content populated on JSP, each row there is one <code>&lt;button&gt;</code> when we click that button form values goes to controller then I set all values to jsp using <code>model.addAttribute()</code>
   In that jsp some of the fields are dropdowns now I want to display the form value as default value to next Jsp can any one help me how can i proceed further?</p>
  
  <p>sample code i wrote </p>
  
  <p>in jsp</p>
  
  <pre><code>&lt;form:select path="country"&gt;
    &lt;form:options items="${countryList}" itemLabel="country"/&gt;
    &lt;/form:select&gt;
  </code></pre>
  
  <p>In controller method</p>
  
  <pre><code>@RequestMapping("/")
  public String getClist(@ModelAttribute("form") FormBean fb){
    sysout(fb.getCountry());
  
    List&lt;Country&gt; c =userdao.getCountryList();
  
    model.addAttribute("countryList",c);
  }
  </code></pre>