by Dinesh Thakur Category: Struts2

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 Category: Struts2

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 Category: Struts2

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 Category: Struts2

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 Category: Struts2

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.

 
by Dinesh Thakur Category: Struts2

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 Category: Struts2

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.



 


About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.