JSF vs Struts

JSF and Struts – Comparison

JSF does:

1. Manages UI component state across requests. Struts does not have a notion of component state
2. Supports multi=page form processing.
3. Providing a strongly typed event model that allows the application to write server-side handlers (independent of HTTP) for client generated events. Faces brings a JavaBeans like event model to the web by using the ValueBinding API. Struts has nothing similar to this.
4. Validates request data and provides appropriate error reporting . Struts however has better error handling mechanisms.
5. Enables type conversion when migrating markup values (Strings) to and from application data objects (which are often not Strings). Automatic type conversion for UI input values is available in both Struts and JSF, but is more powerful with JSF.
6. Handles page-to-page navigation in response to UI events and model interactions.
7. The Action class, to which the request is submitted from the view, is tightly coupled to the ActionServlet. Nothing in JSF calls the FacesServlet.

About cuppajavamattiz
Matty Jacob - Avid technical blogger with interests in J2EE, Web Application Servers, Web frameworks, Open source libraries, Relational Databases, Web Services, Source control repositories, ETL, IDE Tools and related technologies.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: