title: get multi select listbox values to spring controller through ajax call
body: <p>I have a multi select list box. I want to send the user selected list box values to the spring controller. I'm making a ajax call to perform action.
  Please suggest through ajax call how can i send all the values from the multi selected list box to java spring controller and get all selected list box values. Please find the fiddle <a href="https://jsfiddle.net/bwc3yqme/5/" rel="nofollow">https://jsfiddle.net/bwc3yqme/5/</a>.</p>
  
  <p>Below is my ajax call:</p>
  
  <pre><code>function updatedInfo()
  {
      var xmlHttp;  
      if (window.XMLHttpRequest)
      {
          xmlHttp= new XMLHttpRequest();
      }
      else if (window.ActiveXObject)
      {
          xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
      }
      var url = contextPath+"/updateInfo.htm";
      xmlHttp.onreadystatechange = function() {
          handleServerResponse(xmlHttp);
      };
      xmlHttp.open("GET", url, true);
      xmlHttp.send(null);
  
      function handleServerResponse(xmlHttp)
      {   
         if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
         {
  
  
         }   
      }
  }
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>   @RequestMapping(value = "/updateInfo", method = RequestMethod.GET)
     public void updateInfo(HttpServletRequest request,
             HttpServletResponse response, @ModelAttribute MyDataDTO myDto,BindingResult beException,final @RequestParam("selItems") String params){
  
  //i want to get the user selected list box values...
  
  }
  </code></pre>
  
  <p>Please suggest how can i send user selected list box values through ajax to spring controller.</p>