
Java Techies - Solution for All
Java Techies - Solution for All
Struts 2 is a pull-MVC framework. i.e. the data that is to be
displayed to user has to be pulled from the Action. The "pull"
comes from the views ability to pull data from an action using
Value Stack/OGNL. Learn more... |
1.2 What is MVC ?
The Model-View-Controller architectural pattern (MVC) divides an
interactive application into three components. Learn more... |
1.3 Why MVC ?
MVC Follows Separation of Concern Principal. Learn more... |
If you want to build 1000 of MVC Applications , you require MVC
Framework. Learn more... |
Core components used in Struts 2.x Learn more... |
Struts 2 Architecture is based on WebWork 2 framework. It
leverages the standard JEE technologies such as Java Filters,
JavaBeans, ResourceBundles, Locales, XML etc in its architecture. Learn more... |
For Creating Struts First Program, You required the Following
things Learn more... |
Both Sturt 1.x and 2.x are useful but their features listed below Learn more... |
struts.xml-format files from a bootstrap struts.xml file Learn more... |
1.10 UI in Struts 2
For User Interface struts have more component. Learn more... |
FreeMarker is a template engine; a generic tool to generate text
output Learn more... |
IOC and DI are programming design patterns, which are used to
reduce coupling in programming.
Learn more... |
1.13 Interceptor
The purpose of Interceptors is to allow greater control over
controller layer and separate some common logic that applies to
multiple actions.
Learn more... |
1.14 Alias Interceptor
This interceptor alias a named parameter to a different parameter
name.
Learn more... |
1.15 Execute and Wait
While running a long action, the user may get impatient in case of
a long delay in response.
Learn more... |
The Struts 2 framework provides the functionality of exception
handling through the Interceptor.
Learn more... |
1.17 Validation Framework
Struts 2 based on a validation framework, which is provided by
Xwork.
Learn more... |
validation.xml file placed in the same location , where Action is
placed and it is same name as action name and end with
validation.xml file
Learn more... |
It is written in the Actionclass by overriding the validate method, this method calls automatically when user submit the page, it is
call before the execute method , and if any error occurred , it
return the input as a result , otherwise it execute the execute
method of the action
Learn more... |