Centralized File-Based Configuration - Rather than hard-coding information into Java programs, many Struts values are represented in XML or property files. This loose coupling means that many changes can be made without modifying or recompiling Java code, and that wholesale changes can be made by editing a single file.
Apache Struts provides a set of custom JSP tags that let you easily output the properties of JavaBeans components.
In older JSP and Servlets - It's just whether you want to spend your time defining JavaBeans or cutting and pasting code snippets between JSPs.
Gain both flexibility and functionality
The Struts forms could then read and set the fields on the rowset, and the rowset could be used to update the model directly when it was returned. No additional hand-offs.
Rather than hard-coding information into Java programs, many Struts values are represented in XML or property files. This loose coupling means that many changes can be made without modifying or recompiling Java code.
Java and Web developers focus on their specific tasks (implementing business logic, presenting certain values to clients, etc.) without needing to know about the overall system layout.
To change the appearance of an MVC-based component, all you have to change is its view part. To change the way it responds to user events, all you have to change is its controller part. In this way, you can equip a component with multiple appearances, multiple behaviors, or both, without disturbing the component's underlying architecture.
- Multiple views using the same model
- Easier support for new types of clients
- Clarity of design
- Efficient modularity
- Ease of growth
- Distributable
No comments:
Post a Comment