Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1.1 - More ActionMessages than I bargined for

 
Geoff Prest
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic