title: Struts2 Action execution and response through AJAX
body: <p>I am trying to send an AJAX post request via jQuery to a Struts2 action class for processing a form and receiving JSON response, but I haven't figured out how to do it. </p>
  
  <p>First, I made the form and set up Struts for this form to work without JavaScript (trying to do progressive enhancement), and now I am trying to get it to work through jQuery. I could easily just create a new servlet that would call the validate and execute methods of the action class and print the response there, but I first want to make sure that it is possible to use just the action class. </p>
  
  <p>I've read about Ajax validation using the built in struts validator, but I don't want to do that. Is there at least a way to get the <code>ActionErrors</code> and <code>ActionMessages</code> via Ajax? </p>