By: Freddy Ng in JSF Tutorials on 2008年08月13日 [フレーム]
Struts and JSF are two popular Java web frameworks used for building web applications. While Struts has been around for longer, JSF is a more recent framework that was developed to address some of the limitations of Struts. Here is a comparison of Struts against JSF:
Architecture: Struts follows a Model-View-Controller (MVC) architecture where the controller is responsible for managing the flow of the application. JSF, on the other hand, follows a Component-View-Controller (CVC) architecture where the controller manages the state of the components.
Ease of development: JSF has a more modern and intuitive API that is easier to use compared to Struts. The JSF API is based on the use of components, which means that developers can drag and drop components onto a page and then configure them using simple properties. Struts, on the other hand, has a more complex API and requires more coding to achieve the same results.
Performance: Struts is known for its performance and can handle a large number of concurrent requests. JSF, on the other hand, can be slower due to its complex lifecycle and overhead of rendering components.
Reusability: JSF provides a high level of component reusability due to its modular architecture, which allows developers to create reusable components that can be used across multiple applications. Struts, on the other hand, has limited reusability and requires developers to write custom code for each application.
Integration: Struts integrates easily with other Java frameworks such as Hibernate and Spring. JSF, on the other hand, can be more difficult to integrate with other frameworks due to its complex lifecycle.
Community support: Both Struts and JSF have strong community support and active developer communities. However, JSF has a larger community of developers due to its more recent development and use of modern technologies.
In conclusion, both Struts and JSF have their strengths and weaknesses, and the choice of framework depends on the specific needs of the project. While Struts is known for its performance and integration with other frameworks, JSF provides a more modern and intuitive API and a high level of component reusability.
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Most Viewed Articles (in JSF )
How to open a new browser window from my JSF page?
Struts Vs JSF (A comparison of Struts against JSF)
Calling Multiple Listeners in JSF
Accessing Context Data in Beans using JSF
faces-config.xml to DirectTraffic in the JSF Application
JSF - TreeNode.setID gets IllegalArgument Exception
Servlet error : java.lang.IndexOutOfBoundsException (JSF RI 1.1_01: IndexOutOfBoundsException)
<convertNumber> and <convertDateTime> in JSF
Controlling Page Navigation in JSF - Static and Dynamic Navigation
Latest Articles (in JSF)
Struts Vs JSF (A comparison of Struts against JSF)
Calling Multiple Listeners in JSF
<convertNumber> and <convertDateTime> in JSF
faces-config.xml to DirectTraffic in the JSF Application
JSF - TreeNode.setID gets IllegalArgument Exception
Servlet error : java.lang.IndexOutOfBoundsException (JSF RI 1.1_01: IndexOutOfBoundsException)
How to open a new browser window from my JSF page?
Accessing Context Data in Beans using JSF
Install and Deploy JBoss Application Server
Controlling Page Navigation in JSF - Static and Dynamic Navigation
Struts Vs JSF (A comparison of Struts against JSF)
Calling Multiple Listeners in JSF
<convertNumber> and <convertDateTime> in JSF
faces-config.xml to DirectTraffic in the JSF Application
JSF - TreeNode.setID gets IllegalArgument Exception
Servlet error : java.lang.IndexOutOfBoundsException (JSF RI 1.1_01: IndexOutOfBoundsException)
How to open a new browser window from my JSF page?
Accessing Context Data in Beans using JSF
Install and Deploy JBoss Application Server
Controlling Page Navigation in JSF - Static and Dynamic Navigation
© 2023 Java-samples.com
Tutorial Archive: Data Science React Native Android AJAX ASP.net C C++ C# Cocoa Cloud Computing EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Trends WebServices XML Office 365 Hibernate
Latest Tutorials on: Data Science React Native Android AJAX ASP.net C Cocoa C++ C# EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Cloud Computing WebServices XML Office 365 Hibernate