Struts vs. Faces
JavaServer Faces and Apache Struts are Web development programs used for Java-based applications. When deciding between using Faces and Struts, the choice comes down to what the developer is using the technology to accomplish in the framework.
-
JavaServer Faces
-
The goal of JavaServer Faces is ease of use. The technology is clearly defined and shows an easy separation between the logic of the application and the actual presentation. Use of JavaServer Faces is best suited for newer applications, more complex interfaces and applications supporting multiple clients.
Apache Struts
-
Apache Struts is a development program used to build Java Web applications. Struts is best used to perform minor adjustments on applications that have been previously built using the Struts application.
-
Verdict
-
The future of Java-based Web development is JavaServer Faces, and eventually all developers will need to be as familiar with this type of system as they currently are with Apache Struts. Struts, however is a mature and proven system that is still widely accepted. If you need a more action-based program for use with, for example, a blog, Struts would be a better fit; however, for more a more in-depth framework, such as that used with accounting packages, JavaServer Faces would be more useful.
-
References
- Photo Credit computer image by Orlando Florin Rosu from Fotolia.com