title: How to pass value from spring controller to javascript function
body: <p>I am calling controller through javascript function like below and I want to return some value(<strong>controller execution time</strong>) from <strong>controller</strong> to <strong>same javascript function</strong> without using return statement or any other way?</p>
  
  <pre><code>function myFunction(){
    var form123 = document.getElementById("myFormSubmit");
    form123 .action="userDetailsList";
    form123 .method="POST";
    form123 .submit();  
  }   
  </code></pre>