Struts Tutorials

The below article provide the common struts errors and how to rectify them. 1.The class referenced by the struts action does not exist  To execute every action in the configuration file must have a corresponding Java class. When the class does not exist, the web server will fall to start. Say the Java class is […]

1.Starting up   To create  a new project  for the application  the following objects are considered. Go to the menu bar and select File → New → Struts Project Next enter “StrutsHello” as the project name Leave everything else as it is, and click Next If you have server runtime already defined, just pass to […]

Here we will learn about how to upload a file using the struts framework. Struts file upload examples are also explained here. Multiple struts file upload are also explained here.The brain of the strut file upload application is the interface org. apache.struts.upload.FormFile. It is a file that has been uploading by a client. Steps for […]

Tiles in Struts helps to provide an easy and common look for Struts application. Struts Tiles is a user interface framework. The steps for creating a tiles application are explained below. Eg: – tiles-defs.xml <!DOCTYPE tiles-definitions PUBLIC “-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN” “”> <tiles-definitions> <definition name=“company-template” path=“/pages/tiles/common-layout.jsp”> <put name=“header” value=“/pages/tiles/template-red/header.jsp” /> <put name=“footer” value=“/pages/tiles/template-red/footer.jsp” /> […]

Struts Interceptors are widely used in struts application to intercept the requests that needs to be processed.Interceptors are a type of object that helps to intercepts an action dynamically. In Struts we can use a mechanism of controlling a request using interceptors and the interceptors are responsible for the most of the request process. It […]

Struts Spring integration is a type of integration common to the struts framework. The different types of Struts integration methods are given below. Struts Spring Integration Struts Tiles Integration Struts Hibernate 1)      Struts Spring Integration: – Spring has a function as an MVC implementation like strut. Strut as the foundation for building quality software under […]

Struts hibernate integration is a common integration mechanism of the struts application. Hibernate is one of the powerful Object-Oriented mapping tool that maps the object view of data into relational database  for java and it includes efficient persistence services such as create, read, update and delete (CRUD). It also provides powerful, ultra-high performance OR persistence […]

Struts Tags are widely used in the struts application.For creation of a new bean includes one of the standard Struts framework configuration objects we used strut tag. This tag used to get back the value of the specified Struts internal configuration object, and defines it as a scripting variable, which is accessible as a remainder […]

Here you can understand the different actions and helper methods in the Struts Action class. An action is act like an adapter between the incoming HTTP request and take the matched business logic that must be takes the appropriate action. The RequestProcessor is act as the controller of the strut action. It will select needed action […]

The struts life cycle describes the flow of struts application .The different actions  that is performed  and the struts flow in the struts life cycle are depicted below. Steps for request lifecycle in strut two applications:- 1)      In first step user sends a request to the server for some resource. 2)      The filterDispatcher accept the request […]