ValueStack and it Object Stack and Context Map
ValueStack is the platform or playground for the Struts 2 framework for its request handling. Consider a user has sent request to the Struts 2 application. First a ValueStack object is created for that request and then the objects like ACTION, Model and any Java resources that are needed are created. These objects references are maintained in the ValueStack. Apart from the Objects created, we might also need the objects like request attributes, Session attributes and Application context to set and access the objects in those scopes. The ValueStack also gets the references to these objects as well. So, if you consider ValueStack , then you should keep in mind that this object is like an address book or contact list for all the objects that are needed to handle this request. One of the major advantages of Valuestack is that any object with which we work or the model objects are available to the response UI pages through the OGNL expression language. We ...