DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23407>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23407 ActionMessages toString() method desirable ------- Additional Comments From [EMAIL PROTECTED] 2003-09-25 14:27 ------- I improved on it a little: ActionMessages: /** * @return a string representation of this object */ public String toString() { StringBuffer buff = new StringBuffer(); for (Iterator i = messages.keySet().iterator(); i.hasNext();) { String keyName = (String) i.next(); buff.append("[" + keyName + ":"); ActionMessageItem ami = (ActionMessageItem) messages.get(keyName); for (Iterator i2 = ami.getList().iterator(); i2.hasNext();) { ActionMessage am = (ActionMessage) i2.next(); buff.append(am.toString()); if (i2.hasNext()) buff.append("|"); } buff.append("]"); } return buff.toString(); } ActionMessage: /** * @return string representation of this message */ public String toString() { StringBuffer buff = new StringBuffer(); buff.append(this.key); int len = java.lang.reflect.Array.getLength(this.values); for (int x = 0; x < len; x++) { if (this.values[x] != null) buff.append(",(" + this.values[x] + ")"); } return buff.toString(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]