java - Obtain the formbean updated by other session in struts 1.x -


In Stropes 1.x, two browsers (two sessions in this position) are allowed to work on the same Do actionForm update another code in another action class after another session updated?

No, it is not a behavior with struts, but there is a behavior with all web applications. Any values ​​stored in the
session are only available for one browser / user, although in many requests.

If you have a need to share the values ​​in a session, you must see alternate options such as:

  1. Storage in DB
  2. Data Using Singleton to share
  3. Share data via servlet. For more information
  4. Assign your values ​​to your class this will allow you to share the objects in sessions and requests. However, be careful with threading.

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -