This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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

Struts 1.1 - More ActionMessages than I bargined for

Geoff Prest

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,

SCJP 6, SCJA, SCJD in progress
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Struts 1.1 - More ActionMessages than I bargined for
It's not a secret anymore!