Struts Vs JSF (A comparison of Struts against JSF)
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.
Add Comment
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
- Your name, rating, website address, town, country, state and comment will be publicly displayed if entered.
- Aside from the data entered into these form fields, other stored data about your comment will include:
- Your IP address (not displayed)
- The time/date of your submission (displayed)
- Your email address will not be shared. It is collected for only two reasons:
- Administrative purposes, should a need to contact you arise.
- To inform you of new comments, should you subscribe to receive notifications.
- A cookie may be set on your computer. This is used to remember your inputs. It will expire by itself.
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:
- Although the administrator will attempt to moderate comments, it is impossible for every comment to have been moderated at any given time.
- You acknowledge that all comments express the views and opinions of the original author and not those of the administrator.
- You agree not to post any material which is knowingly false, obscene, hateful, threatening, harassing or invasive of a person's privacy.
- The administrator has the right to edit, move or remove any comment for any reason and without notice.
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.
- Data Science
- Android
- React Native
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
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
Comments