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. |
execute
public 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.
execute
in interface ActionCommand
execute
in class ActionCommandBase
actionCtx
- The Context
for the current requestfalse
so that processing continuesException
- on any errorCopyright © 2000–2016 Apache Software Foundation. All rights reserved.