title: Spring MVC get value from ajax and Mapping with add to <form:select>
body: <p>Is it possible to add Select option by Mapping with Model without response to ajax? <br>
  Now, I add options to select by response to ajax and using for loop <br><br>
  My View</p>
  <pre><code>function addfunction(){
      var valuess = $(&quot;#test01&quot;).val();
      var base_url = window.location.origin;
      $.ajax({
          type: &quot;Post&quot;,  
          url: base_url+&quot;/testCalling&quot;,
          data: &quot;values=&quot;+values,
          datatype: &quot;json&quot;,
          success: function(data){
              alert(&quot;ok&quot;);
          }
      });
  }
  
  &lt;form:label path=&quot;test01&quot;&gt;Test01&lt;/form:label&gt;
  &lt;form:input path=&quot;test01&quot;/&gt;
  &lt;form:select path=&quot;result01&quot; items=&quot;${result01}&quot; /&gt;
  &lt;button type=&quot;button&quot; onclick=&quot;addfunction()&quot;&gt;Add&lt;/button&gt;
  </code></pre>
  <p>My Controller</p>
  <pre><code>@RequestMapping(value = &quot;/testCalling&quot;, method = RequestMethod.POST)
      public ModelAndView details(@RequestBody GroupRuleModel groupRuleModel, HttpServletRequest request,
              HttpServletResponse response) {
  
          //SQL get values and add to Select option without response to ajax
      }
  </code></pre>
  <p>My Model</p>
  <pre><code>private String test01;
  private String result01;
  
  public String getResult01() {
      return result01;
  }
  public void setResult01(String result01) {
      this.result01 = result01;
  }
  public String getTest01() {
      return test01;
  }
  public void setTest01(String test01) {
      this.test01 = test01;
  }
  </code></pre>