dgraham 2003/09/09 19:28:38 Modified: src/share/org/apache/struts/action Action.java Log: Removed saveMessages() that saves messages to the session. Revision Changes Path 1.69 +4 -31 jakarta-struts/src/share/org/apache/struts/action/Action.java Index: Action.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/Action.java,v retrieving revision 1.68 retrieving revision 1.69 diff -u -r1.68 -r1.69 --- Action.java 23 Aug 2003 17:04:46 -0000 1.68 +++ Action.java 10 Sep 2003 02:28:38 -0000 1.69 @@ -472,32 +472,6 @@ // Save the messages we need request.setAttribute(Globals.MESSAGE_KEY, messages); } - - /** - * Save the specified messages keys into the appropriate session - * attribute for use by the <html:messages> tag (if - * messages="true" is set), if any messages are required. Otherwise, - * ensure that the session attribute is not created. - * - * @param session The session to save the messages in. - * @param messages The messages to save. <code>null</code> or empty - * messages removes any existing ActionMessages in the session. - * - * @since Struts 1.2 - */ - protected void saveMessages( - HttpSession session, - ActionMessages messages) { - - // Remove any messages attribute if none are required - if ((messages == null) || messages.isEmpty()) { - session.removeAttribute(Globals.MESSAGE_KEY); - return; - } - - // Save the messages we need - session.setAttribute(Globals.MESSAGE_KEY, messages); - } /** * Save a new transaction token in the user's current session, creating @@ -508,7 +482,6 @@ protected void saveToken(HttpServletRequest request) { token.saveToken(request); } - /** * Set the user's currently selected Locale into their HttpSession.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]