Turn Desktop View Off
by Dinesh Thakur

If you are working on Struts2, Actions are the heart and soul of the Struts2 MVC web framework. A user sends a HTTP request from its web browser which is in the form of a URL and it represents an Action. The framework selects an appropriate Action class based on the mappings available in struts.xml.

 
by Dinesh Thakur

Both versions of Struts hosting framework provide the following three key components:

• A request handler provided by the application developer that maps Java classes to standard URI.

• A response handler that maps control to server pages or other Web resources which then will be responsible for completing the response.

• A tag library that helps developers to creating rich, responsive, form-based applications with server pages.



 
by Dinesh Thakur

As you learn a user sends a request from its web browser which is in the form of a URL. The request sent by the user passes through a standard filter chain which actually collected by the Controller (Filter Dispatcher). Controller examines each incoming URL request and determines which action should handle the request. Then the Controller transfers the request to the action class. The action plays an important role in the transfer of data from the request through to the view. Finally, the Result renders the output to the Web browser that requested.

 
by Dinesh Thakur

Request Initialization {HTTPSERVLETREQUEST}

A user sends a request fromits web browser which is in the form of a URL and it represents an Action. The user's request begins and ends in its web browser. The request sent by the user passes through a standard filter chain which actually makes the decision by calling the desired StrutsPrepareAndExecuteFilter. Its fully qualified name is org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.

FilterDispatcher was used instead of StrutsPrepareAndExecuteFilter in older Struts version 2.1.3

 
by Dinesh Thakur

We call Model-2 architecture as MVC (Model View Controller) architecture but Model-1 has Model-1. There are three main components exists in Model 2 architecture: the model, the view, and the controller. Initially the term Model2 is used in the JavaServer Pages Specification version 0.92.

 
by Dinesh Thakur

We can develop applications by without using any framework in java. But the application development is very slow and we can't get any additional container provided services.



 
by Dinesh Thakur

Struts2, is an OpenSymphony WebWork framework, is an Open source project provides an abstraction layer on top of the existing technologies called as Servlet and JSP for creating of Java based Web applications based on the MVC design pattern. Struts 2 framework is nothing but implementation of MVC-2 model on JSP.