What are the fundamental differences between Struts and JSF:
"Routing around the hyperbole and actually trying to answer the question...
The key differences between the two are the base paradigms that underly each platform.
Specifically, JSF is a 'component' framework whereas Struts is an 'action' framework.
What does that mean?
In a component framework, artifacts that are rendered on the page are initially developed as individual components, much like in modern GUI 'fat client' libraries. You have components, they have events, and your code is written to work with those events against the components.
Most of the time, in mainstream development, your code is pretty much ignorant of the HTTP request cycle and processing.
Struts (both 1 and 2) are action frameworks. In essence they give you the ability to map URLs to activities and code on the back end. Here, the layout and workflow tends to be more page oriented. As a developer you tend to interact with the HTTP request cycle directly, though Struts 2 helps isolate at least the binding of the request data to the action implementation classes.
Action frameworks tend to be much 'thinner' in how they stand between your code and the raw HTTP request compared to component frameworks.
For those people just cutting their teeth on web development, the component"
Friday, November 20, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment