Can be reduced to this:

public String getFormatted(String key, String fieldName, List<?> args) {
       if (getFieldErrors().isEmpty()) {
           return getText(key, args);
       } else {
           return
ActionContext.getContext().getValueStack().findString(defaultValue);
       }
}

and it works just for one field ;-) There should check if there is a
error for given fieldName


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to