aspose file tools*
The moose likes Struts and the fly likes Struts 1.1 - More ActionMessages than I bargined for Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.1 - More ActionMessages than I bargined for" Watch "Struts 1.1 - More ActionMessages than I bargined for" New topic
Author

Struts 1.1 - More ActionMessages than I bargined for

Geoff Prest
Greenhorn

Joined: Feb 20, 2007
Posts: 17
Hi all,

I've been asked to explain a confusing situation. I'm hoping your combined wisdom and experience could shed a little light.

In a nutshell, we had an isolated incident where a page was displayed with two ActionMessages where only one should ever be possible. I have not been able to reproduce this error, and there is no history of it occurring in the past. The Action code in question controls the login logic; its basic flow is as follows:

Attempt to authenticate the given credentials
If authentication was successful, display message 'A'
If authentication failed, display message 'B'
If a technical error occurred, display message 'C'

The problem is that the page was displayed with both messages 'A' and 'B'.

I am suspecting some kind of caching problem, but I can't be sure.

Has anyone out there experienced and explained a similar issue? If not, any creative ideas/explanations would be greatly appreciated.

Thanks in advance,
Geoff.


SCJP 6, SCJA, SCJD in progress
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 1.1 - More ActionMessages than I bargined for
 
Similar Threads
Question about html:messages
Request scope vs. Session scope.
Dialog Boxes in Web Application
Struts error message
DISPLAYING MESSAGES USING html:messages TAG