With regard to the framework of STRUTS2, he was formed by the combination of Struts1 and webwork. STRUTS2 Thread is secure
Strut2 surface is STRUT1 upgrade, the essence is webwork upgrade. Strut2 is the integration of STRUT1 and WebWork, the core is webwork.
The two foundations used by struts2:
The underlying and webwork use the Threadlocal class to provide variables, this variable can only be accessed in one thread, implemented a radish a pit, will not appear because of multiple access to modify data caused by data errors, but the disadvantage is that space consumption is very large, not suitable for high concurrency software development!
The other is that the OGNL full name is Object-graph Navigation Language ( object Graphics navigation language ); unlike El expressions, other advantages are the following, in addition to keeping El's advantages:
- A common way to access objects
- Ability to access static properties and static methods of a class
- Powerful ability to manipulate collection class objects
- Supports assignment operations and expression concatenation
- Accessing the OGNL context and Actioncontext
Struts Learning Summary