Bug #986

Field messages in session scope are lost [Wilfried Reinoehl]

Added by Old User almost 13 years ago. Updated 23 days ago.

Status:Nouveau Start date:
Priority:Medium Due date:
Assignee:Old User % Done:


Target version:-


[Wilfried Reinoehl]
This is a feature request to support field messages that are stored in session
scope. Saving ActionErrors or ActionMessages in session scope is a standard
Struts operation (see the appropriated saveErrors() and saveMessages() methods
in the Struts Action class.

I need this feature since I user the Struts Dialogs library together with Struts Layout. Struts Dialogs requires to store errors/messages in session scope.

I suggest the following additional lines in the retrieveErrors() method in the LayoutUtils class that are surrounded by the SF_PATCH_START und SF_PATCH_END comments. Doing this my feature request will be satisfied and existing code that stores errors/messages in request scope works as before.

-- snip --
public static List retrieveErrors(PageContext pageContext, String property)
throws JspException {
ActionMessages errors =
(ActionMessages) pageContext.getAttribute(
ActionMessages sessionScopeErrors =
(ActionMessages) pageContext.getAttribute(
if (errors == null) {
errors = sessionScopeErrors;
} else {
List localizedErrors = new ArrayList();
if (errors != null && !errors.isEmpty()) {
Iterator iterator = errors.get(property);
while (iterator != null && iterator.hasNext()) {
ActionMessage report = (ActionMessage) iterator.next();
LayoutUtils.getLabel(pageContext, report.getKey(), report.getValues()));
return localizedErrors;

-- snip --


Updated by Harvey Reid about 1 month ago

I have a doubt on this topic. After reading this post, I have clarified my doubts regarding this topic. Thanks for sharing.
Buy dowsing copper rods

Updated by Stuart Mcdougall 25 days ago

A Mule Scope is a code square which contains a progression of message processors. Mule provides some imperative extensions, e.g. Reserve, Message Enricher, and For Each. and so on. For a definite rundown of scopes, please read the write my assignment for me.

Updated by Roswell Rory 23 days ago

There is a feature named Field messages in session scope are lost that is utilized to support field messages that are stored in session scope. I found assignment writing service London is another source of helping hand. It also saves ActionErrors or ActionMessages in session scope. Is there anyone who can help me out with this issue as I don’t know what it is all about?

Also available in: Atom PDF