Re: saveErrors

2005-05-16 Thread Davide Cavallari
Zakaria KHABOT wrote: in my action I put : errors.add("erreur",new ActionError("Le CINn Agent doit etre numérique: Mise à jour non réalisée")); From the Javadoc: public ActionError(java.lang.String key) Deprecated. Construct an action error with no replacement values. Parameters:

Re: saveErrors...

2004-06-23 Thread Mark R. Diggory
Joe Germuska wrote: If I have errors occur in different locations, rather than returning ActionMessages objects and having to merge them myself prior to calling "saveErrors" or "saveMessages", why not have this be more like "addError" or "addMessage" at the action level so that the user doesn't nee

Re: saveErrors...

2004-06-23 Thread Joe Germuska
If I have errors occur in different locations, rather than returning ActionMessages objects and having to merge them myself prior to calling "saveErrors" or "saveMessages", why not have this be more like "addError" or "addMessage" at the action level so that the user doesn't need to maintain the "A

Re: saveErrors...

2004-06-23 Thread Mark R. Diggory
Mark R. Diggory wrote: I was looking at the code for Action.saveErrors(...) and was think this is a little inflexible when it comes to error and message management: protected void saveErrors(HttpServletRequest request, ActionMessages errors) { // Remove any error messages attribute if