|
|
Struts –introduction
Struts Framework was developed by Craig McLanahan in 2002 and subsequently handed over to Apache Jakarta project group. Struts is based on MVC (Model-View-Controller) architecture
- Model
The model contains the core of the application's functionality. The model encapsulates the state of the application. Sometimes the only functionality it contains is state. It knows nothing about the view or controller.
- View
The view provides the presentation of the model. It is the look of the application. The view can access the model getters, but it has no knowledge of the setters. In addition, it knows nothing about the controller. The view should be notified when changes to the model occur.
- Controller
The controller reacts to the user input. It creates and sets the model.
Pre-requsite
A good understanding and practical knowledge of Servlets, JSP, JavaBeans, Tag Library, MVC Architecture ,XML config files and Tomcat server is required for understanding Struts.
And it has to be supplemented with real practical work, to get it going. Without sufficient lab-experience, a hundred things can go wrong! Just a bit of careless 'casing' and package names and we are confronted with stubborn compile errors. Remembering the fact that xml files also are 'case-conscious', would save us a lot of frustrating delay. And it is so easy to get lost in the paths and classpaths of Java, especially with 'Struts'! , This tutorials are aimed to explaining step by step procedures to configure and developing struts application in Tomcat server.
Software required for learning
- JDK - Java
- Tomcat web server- web server from apache, we are using tomcat server for deploying our struts application.
- struts files- download struts related API from here for developing struts application
- web browser- finally web browser where we can see end results of the struts application
|
|