Class CacheMessages

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

public class CacheMessages extends ActionCommandBase
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:
  • Constructor Details

    • CacheMessages

      public CacheMessages()
  • Method Details