File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread safe Struts Action

 
Abebe Belew
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I put the userid in session variable at login. the login page is forwarded to setupAction upon successful login. In setupaction I get the session attrbute and display it in jsp.

The problem is with multiple users of the app simultinously. usr A logs in successfully. user B logs in successfully in another browser. when I go back to user A's browser I see user B's info.

 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you running this test with two different machines? If not, it's not a valid test. In most cases, Internet Explorer will cause a Java Application server to think that two separate browser windows on the same machine still belong to the same session. If you only have one machine to test with, you might try having one user use FireFox and another IE.
 
Abebe Belew
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
I am testing this in two different machines, same browser.
The problem happens if tow users are accessing the app at the same exact time.
 
Eugene Abarquez
Ranch Hand
Posts: 211
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

I am using Struts 1.2 and I am having the same issue. Two different users login to the same application simultaneously (on different machines). After which, we try testing it by having USER A search in one page and USER B search in another (different page) almost at the same time. The result causes either a 404 Page Not Found error in one of the user's screen, or the display in one of the user's screen to be messed up (i.e. it it mixed up with the page display of the other user).

I have no idea what is causing this problem. Is this a Struts issue?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic