Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Struts and the fly likes Struts + Springs + Action message issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts + Springs + Action message issue" Watch "Struts + Springs + Action message issue" New topic

Struts + Springs + Action message issue

siva swamy

Joined: Jul 12, 2007
Posts: 7

We are using struts 1.2.9 and springs. I have one issue. Action messages (some error message and information to the user) of one user is available to another user who is also working on the application. He may do some other action.

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
It looks like you may have coded your action classes in a non-threadsafe way. In Struts 1, actions are shared across multiple threads, so they must be coded as threadsafe. This means no instance variables unless they contain values that do not change from one user to the next.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Struts + Springs + Action message issue