Struts 1 is a MVC frame work to develop web applications it is one of the most successful frame works for web applications though industry is no more using this frame work still there are many large scale applications which were developed using this frame work and organisations are maintaining those applications.
To understand this frame work first you have to understand on what api and on which technology its designed on. This is a very simple frame work which utilizes jsp and servlet api .Here in the applications developed using this frame work every user request passes through a common place which will be nothing but a central servlet (ActionServet) and accordingly the control will be passed to appropriate user defined actions and request will be processed and results will be generated to end users.
This simple frame work consists of forms,actions,messages and configurations files.
Configuring eclipse for struts 1 applications development:
1)Download struts 1 bundle from the apache struts website or you can also download it from here http://struts.apache.org/download.cgi#struts1310
2)Unzip the bundle in your local system and look into the lib folder you will find all the required jars for the frame work.
3)Open you eclipse IDE and start a new dynamic web project, righ click on the project select properties, select java build path and from right hand side select add library select user library and then select user libraries from the pop up window select new and name the library and add external jars
and select all the required jars of struts from the lib folder of the unzipped struts bundle folder.
4)Select Deployment Assembly from the properties and select add and click java build path entries and pick the struts 1 user library from the list of libraries.
Now your web application is struts 1 enabled and lets start developing a simple struts1 based web application.
To understand this frame work first you have to understand on what api and on which technology its designed on. This is a very simple frame work which utilizes jsp and servlet api .Here in the applications developed using this frame work every user request passes through a common place which will be nothing but a central servlet (ActionServet) and accordingly the control will be passed to appropriate user defined actions and request will be processed and results will be generated to end users.
This simple frame work consists of forms,actions,messages and configurations files.
Configuring eclipse for struts 1 applications development:
1)Download struts 1 bundle from the apache struts website or you can also download it from here http://struts.apache.org/download.cgi#struts1310
2)Unzip the bundle in your local system and look into the lib folder you will find all the required jars for the frame work.
3)Open you eclipse IDE and start a new dynamic web project, righ click on the project select properties, select java build path and from right hand side select add library select user library and then select user libraries from the pop up window select new and name the library and add external jars
and select all the required jars of struts from the lib folder of the unzipped struts bundle folder.
4)Select Deployment Assembly from the properties and select add and click java build path entries and pick the struts 1 user library from the list of libraries.
Now your web application is struts 1 enabled and lets start developing a simple struts1 based web application.
No comments:
Post a Comment