Package org.apache.struts.chain.commands
Class RemoveCachedMessages
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.RemoveCachedMessages
- All Implemented Interfaces:
Command<ActionContext>,ActionCommand
Remove cached messages stored in the session.
- Since:
- Struts 1.3.5
- Version:
- $Id$
- See Also:
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexecute_(ActionContext actionCtx) Removes anyActionMessagesobject stored in the session underGlobals.MESSAGE_KEYandGlobals.ERROR_KEYif the messages'isAccessedmethod returns true.Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
RemoveCachedMessages
public RemoveCachedMessages()
-
-
Method Details
-
execute_
Removes any
ActionMessagesobject stored in the session underGlobals.MESSAGE_KEYandGlobals.ERROR_KEYif the messages'isAccessedmethod returns true. This allows messages to be stored in the session, displayed one time, and be released here.- Specified by:
execute_in classActionCommandBase- Parameters:
actionCtx- TheContextfor the current request- Returns:
falseso that processing continues- Throws:
Exception- on any error
-