| 1. |
What Is Value Stack? |
|
Answer» The VALUE stack is a set of several objects which keeps the following objects in the provided order − TEMPORARY Objects − There are various temporary objects which are created during execution of a page. For example the current iteration value for a collection being looped over in a JSP tag. The Model Object − If you are using model objects in your struts application, the current model object is placed before the action on the value stack. The Action Object − This will be the current action object which is being EXECUTED. NAMED Objects − These objects include #application, #SESSION, #request, #attr and #parameters and refer to the corresponding servlet scopes. The value stack is a set of several objects which keeps the following objects in the provided order − Temporary Objects − There are various temporary objects which are created during execution of a page. For example the current iteration value for a collection being looped over in a JSP tag. The Model Object − If you are using model objects in your struts application, the current model object is placed before the action on the value stack. The Action Object − This will be the current action object which is being executed. Named Objects − These objects include #application, #session, #request, #attr and #parameters and refer to the corresponding servlet scopes. |
|