jQuery Ajax error handling, show custom exception messages
Is there some way I can show custom exception messages as an alert in my jQuery AJAX error message? For example, if I want to throw an exception on the server side via Struts by throw new ApplicationException(“User name already exists”);, I want to catch this message (‘user name already exists’) in the jQuery AJAX error message. On … Read more