You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Dragomir Nikolov <d....@bg.seeburger.com> on 2001/11/21 15:28:50 UTC

Support for Object[] params in the ActionErrors

Hello,
    the ActionErrors constructors take only fixed number placeholder 
objects ( maximum 4 - reason why?).
    It would be really nice if there is a constructor taking an  array ( 
Object[] ) containing these parameters.
    Thus making it easier to support higher number of placeholders for a 
message.
    It won't be hard to implement especially when the  the 
MessageResources class already supports it -
    public String getMessage(Locale locale, String key, Object args[]).

    This will make live easier when you have for instance exception 
initialized somewhere int the business logic with the message key and 
the placeholders and than passed back to the Struts Action classes where 
an ActionError is created and passed to the View objects ( tags in the jsp)
     
Regards Dragomir Nikolov


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>