title: Return a string from Struts2 action to jQuery
body: <p>I call a Struts2 action using jQuery Ajax like the following:</p>
  
  <pre><code> $.ajax ({  
          url: 'callAction.action',
          type: 'POST',
          data: data,
          dataType: 'string',
          success: function (data) {
             console.log("Success");
          }
  });
  </code></pre>
  
  <p>And in response, it has to return a string back to jQuery. </p>
  
  <pre><code>private String result;
  //getters and setters
  
  public String call()
  {
     //some code
     result= "some string";
  
     return SUCCESS;
  }
  </code></pre>
  
  <p>I want to retrieve the <code>result</code> from the function in the Struts action to jQuery. How would I make this possible?  </p>