You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Matthias Kerkhoff <ma...@BESToffers.de> on 2000/11/17 14:45:27 UTC

PATCH: Incorrect description of Action.ERROR_KEY and in ErrorsTag

The comment of Action.ERROR_KEY reads:

    /**
     * The request attribute key under which your action should store an error
     * messages, if you are using the corresponding custom tag library elements.
     * The stored data type should be a String array of individual errors.  If
     * this request attribute is missing, or it is a zero-length array, the error
     * tag will assume that no problems need to be reported.
     */
    public static final String ERROR_KEY =
      "org.apache.struts.action.ERROR";

but the saveErrors() method in the same class stores the more up-to-date
ActionErrors collection wrapper. Therefore the comment should be updated
to reflect the changed attribute type expected at ERROR_KEY.

Attached are Action.java and ErrorsTag.java with slightly updated descriptions.

I would appreciate, if one of the committers can have a look
at the source and do the check-in - I have no permissions.

Thanks.
-- 
Matthias                          mailto:make@BESToffers.de