In struts 1.x is that allowed for two browser (in this case two sessions) operate on the same actionForm
one after another and in the action class get the updated actionForm
updated by another session?
Asked
Active
Viewed 106 times
1 Answers
0
No. This is not a behavior with struts but a behavior with all Web Applications.
Any value stored in session is available to only the same browser/user albeit across multiple requests.
If you do have a requirement to share values across session then you will have to look at alternate options like:
- Storing in DB
- Using a Singleton to share the data
- Share the data through ServletContext. For more info see here
- Have a static value in your class. This will allow you to share objects across session and requests. Be careful with threading though.

Community
- 1
- 1

AdityaKeyal
- 1,208
- 8
- 14