Class RemoveCachedMessages

java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.RemoveCachedMessages
All Implemented Interfaces:
Command<ActionContext>, ActionCommand

public class RemoveCachedMessages extends ActionCommandBase

Remove cached messages stored in the session.

Since:
Struts 1.3.5
Version:
$Id$
See Also:
  • Constructor Details

    • RemoveCachedMessages

      public RemoveCachedMessages()
  • Method Details

    • execute_

      protected boolean execute_(ActionContext actionCtx) throws Exception

      Removes any ActionMessages object stored in the session under Globals.MESSAGE_KEY and Globals.ERROR_KEY if the messages' isAccessed method returns true. This allows messages to be stored in the session, displayed one time, and be released here.

      Specified by:
      execute_ in class ActionCommandBase
      Parameters:
      actionCtx - The Context for the current request
      Returns:
      false so that processing continues
      Throws:
      Exception - on any error