Learning Jakarta Struts 1.2A concise and practical tutorial This book offers step-by-step instructions on Jakarta Struts Framework as well as on building a web application based on Open Source-Software. As the book progresses, we will develop a Web shop: the classic Book Store. This Web application will help us to integrate the individual components of Struts together into [...]
Archive | Struts RSS feed for this section
Struts 2.0 and Spring
October 2, 2008
In this post, I will describe how to do the same using Struts 2.0. The only major step that needs to be done here is to override the default Struts 2.0 OjbectFactory. Changing the ObjectFactory to Spring give control to Spring framework to instantiate action instances etc. Most of the code is from the previous [...]
Custom Validators in Struts 2.0
September 29, 2008
Struts 2.0 allows the use of Custom validators through the @CustomValidator annotation. The @CustomValidator annotation takes two mandatory parameters, type and message type: Refers to the “name” given to the validator in the validators.xml file. message: Message to be displayed when this validator fails. A custom validator can be implemented by extending the FieldValidatorSupport, or [...]
Request Lifecycle in Struts 2.0 applications
August 18, 2008
1. User Sends request: User sends a request to the server for some resource. 2. FilterDispatcher determines the appropriate action: The FilterDispatcher looks at the request and then determines the appropriate Action. 3. Interceptors are applied: Interceptors configured for applying the common functionalities such as workflow, validation, file upload etc. are automatically applied to the [...]
Struts 1.0 Vs Struts 2.0
August 18, 2008
Difference between Struts 1.0 and Struts 2.0 In the following section, we are going to compare the various features between the two frameworks. Struts 2.0 is very simple as compared to struts 1.0,1.1, few of its excelent features are: 1.Servlet Dependency Actions in Struts1 have dependencies on the servlet API since the HttpServletRequest and HttpServletResponse [...]
Introduction to Struts Actions
July 21, 2007
1) Introduction Action classes will be defined to handle requests. Actions exists between the Model and View of an application. This article will cover all of the standard actions and the helper methods of the Action class. The struts-config.xml file designates the Action classes that handle requests for various URLs. The Action objects do Invoke the [...]
Integrating Struts With Spring
May 15, 2007
Introduction Struts is more established and more stable MVC2 framework at this time so if your application is based on Struts framework you may forget about thinking to move to some other framework. But at the same time you must have heard about the buzz created by Inversion of Control (IOC) design pattern. This design [...]
Introductiion to Jakarta Struts
April 12, 2007
Introduction This article explores the Struts framework in depth and highlights the benefits Struts can bring to your development efforts. We believe that once you can “talk the talk” of web architecture and design, you will be better equipped to use Struts with your own applications. With a sound overview of the Struts architecture in [...]






September 1, 2009
0 Comments