Struts2 stack of values

Source: Internet
Author: User

1. There are 2 logical parts inside the Valuestack object:

--Objectstack:struts the Action and related objects in the RU Objectstack

--Contextmap:sturts The various mapping relationships (some map types of objects) into the Contextmap, which is actually a reference to Actioncontext

2. Struts will press the following mappings into the Contextmap:

--Parameters: The map contains the request parameters of the current request;

--Request: The map contains all the attributes in the current request object;

--session: The map contains all the attributes in the current session object;

--application: The map contains all the properties of the current Application object;

--attribute: The map retrieves a property in the following order, request, session, application

3. The object properties in the value stack (valuestack) can be accessed directly on the JSP page via OGNL (Object-graphnavigation Language Object-Graph navigation language). If you want to access the data in the Contextmap in the value stack, you need to prefix the OGNL expression # and the search will be performed in Objectstack if there is no prefixed character #.

  

Struts2 stack of values

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.