Struts1 Spring and Hibernate Integration








Struts1 and Spring Configuration Steps

While integrating struts with spring provides business logic in the form of beans and the MVC layer will be provided by struts. In the order to integrate struts of spring we need plugin class called contextLoaderPlugin or contextLoaderLisenar class these are given in org.spfw.web.struts.jar.*. We need to configure the above plugin in struts-config.xml file with … Read more

DynaAction Form

Struts 1.2 mandated that every HTML form in the JSPs have an associated ActionForm. Struts 1.1 changed all that with the introduction of DynaActionForm – dynamic ActionForm as the name suggests. DynaActionForm is defined in the struts-config.xml as a form-bean. A sample DynaActionForm is shown below Sample DynaActionForm

There are two things For a … Read more

Types of Form Beans in Struts1

The FormBean that is generated by struts forward software dynamically based on the details we provide in struts-config.xml file is called Dynamic Form Beans. There are six types of Form Beans Classes. 1 validationForm. 2 DynavalidatorForm. 3 ActionForm. 4 DynaActionForm. 5 ValidatorActionForm. 6 DynaValidatorActionForm.

Types of Built actions in Struts1

There are following built in actions in Struts1 1 Action Class. 2 Dispatch Action Class. 3 Lookup Dispatch Action. 4 Forward Action Class. 5 Include Action Class. 6 Switch Action Class. 7 Locale Action Class.

Declarative validation example

When ever we deploy this program in any server this program we used Declarative validation logic those validation declare in validation.xml files under of tags. We declare form bean names, fields property depends with the help of file this generate any errors messages again with the help of tags in jsp pages it display … Read more

DynaAction form example







Work Flow of Struts1 framework

User submits the request having data from login.jsp form. Through the web.xml ActionServlet traps the request. ActionServlet uses struts-config.xml file entries to decide appropriate action class and FormBean class to process the request. Forward Software create form beans class object and populates received form data to form bean class object. Forward create Action class object. … Read more

Steps to Develop a Program

Following are the steps to develop a struts1 bases programs Gather and define the application requirement. Define and developed each screen requirement in terms of the data collected and displayed. Determine all the access path for each screen. Determine the ActionMapping that correlate to the application business logic. Create the ActionForms with depend properties from … Read more