2 Replies Latest reply on Oct 13, 2009 8:32 AM by Lotfi Mellouk

    Ajax action commands  and exception

    Lotfi Mellouk Master

      Hi all,

      I send emails on ajax actions, sometimes, when the mail function takes a long time excecution, the request is never rendered, even if the mail has been sent,there a snippet code:

      public String doAction() {
      try {
      // get inputes attributes
      // send mail
      catch(Exception e) {
      return null ;

      can you advice please how to make ajax request less coupled with the mail function, I'd like to render response and not to care about the success of sending mail.