title: Ajax how can I refresh a drop down after call servlet
body: <p>I have the following jsp </p>
  
  <pre><code>&lt;c:forEach items="${vlocomotoras}" var="vl" varStatus="i"&gt;
  
      &lt;select class="regimenFrenoLocomotora" id="regimenFrenoLocomotora" name="regimenFrenoLocomotora" onchange="calcularDocumentoTren();"&gt;
          &lt;option value="P" ${"P" == v1.regimenFrenoLocomotoras ? 'selected="selected"' : ''}&gt;P&lt;/option&gt;
          &lt;option value="G" ${"G" == v1.regimenFrenoLocomotoras ? 'selected="selected"' : ''}&gt;G&lt;/option&gt;
  
  &lt;/select&gt;
  
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>I have the following  ajax  post to a servlet</p>
  
  <pre><code>$.ajax({
              type: "POST",
              url: "/copernico/SrvRenfeSituacion",
              data: {
              "arrayLocomotora[]" : arrayLocomotora,
              todo:todo,
              fecha:fecha,
              tren:tren
            },
              error:function(){
              console.log("ERROR");
            },
              success:function(responseText){
              alert('responseText ');
              alert(responseText);
              alert("Success");
            }
          });
  </code></pre>
  
  <p>This is the servlet</p>
  
  <pre><code>req.setAttribute("vlocomotoras", locomotoras);
  </code></pre>
  
  <p>Now I want to refresh the drop down with the new values of vlocomotoras. How can I do this?</p>