Package org.apache.struts.chain.commands
Class CacheMessages
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.CacheMessages
- All Implemented Interfaces:
Command<ActionContext>
,ActionCommand
Copies any
ActionMessages
from the request to the session if a
redirecting forward is selected and the messages were not accessed. This
allows messages to be retained across a redirect, and then later released by
the RemoveCachedMessages
command. The most common use case for
this command is when the validator or exception handler places messages in
the request.- Since:
- Struts 1.4.0
- Version:
- $Id$
- See Also:
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
execute_
(ActionContext actionCtx) Executes the command.Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
CacheMessages
public CacheMessages()
-
-
Method Details
-
execute_
Description copied from class:ActionCommandBase
Executes the command.- Specified by:
execute_
in classActionCommandBase
- Parameters:
actionCtx
- TheContext
for the current request- Returns:
- TRUE if processing should halt
- Throws:
Exception
- On any error
-