You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by viet nguyen <vi...@yahoo.com> on 2001/09/06 21:46:39 UTC

Action.saveErrors() overwrites previous errors

Here is the code in Action.saveErrors() :


	if ((errors == null) || errors.empty()) {
	    request.removeAttribute(ERROR_KEY);
	    return;
	}

	// Save the error messages we need
	request.setAttribute(ERROR_KEY, errors);

    
- As a result, it will overwrite any previous errors
saved.  Anyone has a short-term work-around for this
or long term solution including rewrite this method
to:
- retrieve previous errors
- append to current errors
- set it back on the request.

V.

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com