I was reading Struts2 In Action, and it says for each request an ActionContext, a ValueStack and an Action instance are created, so they are thread safe. I was wondering how does the framework manages session, because it can't be stored in these locations, where does the actual Map gets stored, and how concurrent access to that Map is managed by the framework?
Struts2 Session Storage Location and Management
632 Views Asked by Udit Mishra At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in STRUTS2
- Struts2 jqGrid DatePicker in Column Filter
- Struts exclude pattern with spring
- Hiding param of struts.xml values in Struts 2
- Struts2 - passing data from jsp form fields with same name to action class
- Using a dash in Struts 2 action name
- window.open vs form.submit
- Struts 2: How to add dynamically inputs in jsp from the action?
- How to perform XML Validation when using ModelDriven?
- Restriction on number of opened tabs
- Struts2 properties in JS
- Node.js with struts Possible?
- Scope attribute migration from Struts1 to Struts2
- Onchange in Struts2 textfield
- Iterate over hashmap of string and list in Struts2 itreator
- struts dialog box not taking jsp scriplet
Related Questions in ACTION
- Calling controller action from action in component
- Why this submit action dont work with php isset?
- Making an HTML Jigsaw Puzzle in Flash CC
- specify type of delegate parameter
- Cocos2D 2.x: Running CCWave action makes sprite disappear
- Render outcome of "action" attribute?
- one form two actions with javascript
- Removing a Wordpress action added from a Plugin and than adding a new action in place of that
- How to add action for custom form in wordpress?
- Java: Need pressing enter to trigger action and actionlistener
- Java actionPerformed questions
- Random Line Appearing on Moving Texture Node
- Understanding touch system
- How to subclass an UIButton to pass multiple NSString parameters via addTarget:action:forControlEvents
- Java JButton.setAction(...) null's button text
Related Questions in VALUESTACK
- Passing an iterable object into a nested JSP
- Access to controller methods in JSP Java scriptlet rather than using tags?
- dandelion runtime expression
- How does Struts2 ValueStack take care of multiple requests
- Struts2 Interceptor post processing
- How to get the sum of values inside Struts 2 iterator?
- Is the ValueStack life cycle across the application in struts2?
- Custom OgnlValueStack in Struts 2
- Dynamically getting One list value with the key of another list value
- some basic queries regarding value stack in struts 2?
- How data travels in Struts2?
- Understanding OGNL expressions in Struts2
- Struts 2 - Understanding the working between OGNL and params interceptor
- c# save 2 textboxs to listbox and work with each information
- Is there a way to bind OGNL with Struts2 UI tags
Related Questions in ACTIONCONTEXT
- Most standard way to implement sessions in strtuts2
- How to set locale dinamically via code in Struts 2
- Why we can't use execAndWait interceptor using ServletActionContext?
- Strut 2.3.1.2 Unit test, how to remove Spring codependency vs NPE with getContext()
- Getting execution method annotations in a interceptor
- Struts2 access ActionContext from jsp using property tag
- can not login when using Interceptor in struts2
- ActionContext.getContext().getParameters() returns null during StrutsJUnit4TestCase
- Get/set ServletRequest attributes from ActionContext
- Get a specific parameter sent from view in interceptor
- Handling session with Struts 2 and Spring security 3
- How to get an ActionContext from Struts 2 during acceptance tests?
- What is the difference between ServletContext and ServletActionContext
- Struts2 JUnit ActionContext objects
- Setting the session property of Actioncontext in the home.jsp
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The http session is stored in the
SessionMapwhich is among the other context maps is stored in the action context by the dispatcher when serving a request. The session map is a wrapper for http session object and operations such asget/putare synchronized using a http session object monitor. It simply synchronizes the access to http session attributes, however providing aMapimplementation.