public class RemoveCachedMessages extends ActionCommandBase
Remove cached messages stored in the session.
| Constructor and Description |
|---|
RemoveCachedMessages() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(ActionContext actionCtx)
Removes any
ActionMessages object stored in the session
under Globals.MESSAGE_KEY and Globals.ERROR_KEY
if the messages' isAccessed method returns true. |
executepublic boolean execute(ActionContext actionCtx) throws java.lang.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.
execute in interface ActionCommandexecute in class ActionCommandBaseactionCtx - The Context for the current requestfalse so that processing continuesjava.lang.Exception - on any errorCopyright © 2000–2025 Apache Software Foundation. All rights reserved.