title: How to execute an action without going to another view in grails?
body: <p>I have a code that starts the server and stops the server. However when i press the button the  server gets started but it also redirects me to a new view. The code in controller i have is</p>
  
  <pre><code>def test= amazonWebService.ec2.startInstances(new StartInstancesRequest([InstanceToStart]))
  </code></pre>
  
  <p>I want to execute test when button is pressed without going to new view. The code I have in my gsp page is</p>
  
  <pre><code> &lt;g:link action="test"&gt;
          &lt;input type="button" value="Start Server" class="button" id="startServer1" /&gt;
      &lt;/g:link&gt;
  </code></pre>