File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!