What is the difference between JSF and Struts?
The acronym of JSF is Java Server Faces and JSF was developed under Java community process. Struts are an open source framework that is used in development of Java EE Web applications. JSF differs from Struts in many ways. The differences between JSF and Struts are:
Java Server Faces (JSF)
|
Struts
|
JSF is a Specification.
|
Struts are an open source framework.
|
JSF action methods can be implemented in Java objects.
|
Struts actions are tied to Struts API.
|
JSF has event model which reacts on value changes, actions and phase changes in JSF lifecycle.
|
In Struts, there are no such event models.
|
JSF component tag does not generate HTML instead they refer a component renderer pair on the server.
|
Struts tag generates HTML directly.
|
JSF supports navigation by defining a navigation rule in the faces configuration file.
|
Struts use the notation to define navigation.
|
JSF uses Dependencies Injection.
|
In Struts, there is no Dependencies Injection.
|
No comments:
Post a Comment