struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34857] - addMessages/getMessages for session scope
Date Thu, 27 Oct 2005 01:00:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34857>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34857





------- Additional Comments From rodsc@terra.com.br  2005-10-27 03:00 -------
Actually, I had a scenario where the messages where saved in one action in the
session scope, since I wanted to redirect to another action. At this action, I
get all the messages back and added a couple of information messages to the
user. When  I used the getMessages() I noticed it just checked for the messages
object in the request scope, while I think the correct behaviour would be to
check in both scopes.

AppFuse implements a BaseAction with getMessages() and getErrors() that do check
in both scopes, and I had to implement these methods in a BaseAction of mine to
work properly. Otherwise I would have to save the messages in the request scope
and stop redirecting, what I wouldn't like to do.

What do you think?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message