What are the Advantages of Struts ?
Struts is a framework follows MVC desigen pattran. so it offers different advantages for the programmer.
It reduces the development maintance time.
Centralizetion of Configuration :
Rather than hard coding information into java programs,many Struts values are represented in XML or property files. Struts_config.xml file is the place from where you can get all informations about your web application. It is organized, your Action class , Form bean and JSP page information is in Struts_config.xml so don't need to search .
Form Beans :
Don't need to set the form vales to your value object . When you want to capture data from a form ( In the servlet you do request.getParameter()). In the struts you don't need to do explicitly request.getParameter(). Struts request processor will do for you. All the input data will be set to form bean.
Bean Tags :
Struts provides a set of custom JSP tags (bean:write,in particular) that let you easily output the properties of JavaBeans components. Basically,these are concise and powerful variations of the standard jsp:useBean and jsp:getProperty tags.
HTML tags :
Struts provides a set of custom JSP tags to create HTML forms that are associated with JavaBeans components.
Form Field Validation :
Advantages of Struts:
**We can deliver the projects easily
**We can reduce the project development time
**Maintanace Of the Project becomes very Easy
**It Follows MVC architecture
**All the required values are write in the xml files,so we can easily change.
**We no need to provide setters and getters methods for java beans.
**We no need to write huge amount of serverside validations
**We have struts tag libraries to do specific works
**We can easily Handle Errors and display appropriate messages
**We can develop "I18N" applications easily
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.