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

DynaAction form example







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

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

Struts1 Spring and Hibernate Integration








Struts1 first program Login Example






Introduction of struts1

Struts is a framework software to develop mvc base web application having the capability to generate integration logic of controller servlet dynamically.This make programmers only concentrate on view layer-presentation logic and Model layer Business logic. Vendors :Apache foundation Version:struts 1.2.x Based on servlet api-2.4,jsp api2.0 Author:crag Mcchallan Installing: installing struts s/w is nothing but downloading … Read more

Struts1 Tags Liberary

Stuts 1.2.x gives following tag libraries to support the program to make jsp of struts application as java codeless jsp. HTML tag library. BEAN tag library. Logic tag library. Nested tag library. Tiles tag library. Templet tag library. Tld files & tag handler class are available in struts-taglib-version.jar files. These tag liberary cannot use in … Read more

Directory Structure of Struts1 Based Web Application

Following is the structure of struts1 web application Create Project Name. Under of Project folder create Web-INF folder. Under of Web-inf folder create web.xmlstruts-config.xml file,all tld files, validator-rules.xml file and validation.xml file. Under of classes folder put All paickages of action class and form beans class,also put files. In lib foalder put all struts … 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.