Hi,

Is there anyway to dynamically pass in a Action Error instead of always 
having to pass in something from a Resource File (see code below)?  Also, 
when I go to display the error messages using <html:errors/> how are the 
error messages sorted ?

Thanks for any help!
Kevin


------------
  public ActionErrors validate(ActionMapping mapping, HttpServletRequest 
request)
  {

    ActionErrors errors = new ActionErrors();

    /* check address city */
    if ((supplierAddress.getCity() == null) || 
(supplierAddress.getCity().length() < 1))
    {
      errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionError("ep.error.addaccount.city.required"));

      ** would like to do something like the following
      errors.add(ActionErrors.GLOBAL_ERROR, "Missing account city for line 
number 1");
      errors.add(ActionErrors.GLOBAL_ERROR, "Missing account city for line 
number 2");
 
    }
    else
    {
    }

    return errors;

  }

Reply via email to