Hello, in the AccountBean I'm doing this for the new account information, but need to add validation to handle an existing userid:
 
  public String newAccount() {
    try {
      accountService.insertAccount(account);
      account = accountService.getAccount(account.getUsername());
      authenticated = true;
      repeatedPassword = null;
      return SUCCESS;
    } catch (Exception e) {
      throw new BeanActionException ("There was a problem creating your Account Information.  Cause: " + e, e);
    }
  }
 
I thought I could add another errors to the messages.properties file and return to the jsp, but not sure how. Could someone give me a quick example?
 
Thanks in advance,
M


New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.

Reply via email to