GeeCON Prague 2014*
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
Author

Struts + Springs + Action message issue

siva swamy
Greenhorn

Joined: Jul 12, 2007
Posts: 7
Hi,

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.

Regards,
Siva
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.


Merrill
Consultant, Sima Solutions
 
GeeCON Prague 2014
 
subject: Struts + Springs + Action message issue