This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts vs Java Server Faces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts vs Java Server Faces" Watch "Struts vs Java Server Faces" New topic

Struts vs Java Server Faces

Steven Kors
Ranch Hand

Joined: Jan 30, 2002
Posts: 33
Why would i use Struts over Java Server Faces (or vise versa) ? A JSR has been created to have JSF as a new technology added to the Java specification.
Is there anyone that can comment on this ? Since JSF seems to address the same concerns as Struts why use struts?

Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1845
As the Java Server Faces specification states

It is understood that many of the problem spaces targeted by this JSR are already being addressed in other projects. One prime example of such a project is the Jakarta open source project, Struts. However, this JSR is aimed at creating a standard for Java server application GUIs, which will serve to unify what's become a fragmented area and strengthen support in tools and other third party products

I think that the Struts application is a greate model to work on. It has also been developed as an Open Source.
Sun Microsystems tends to develop things that already have become popular.
Similar is the scenario for the logging api. Where as the Log4j from apache is a good logging api by itself, Sun has introduced its own logging api in jdk1.4.
Lets see what Java Server Faces has to offer and then decide what to choose visa vis Struts.
It is sorta covered in the JavaRanch Style Guide.
subject: Struts vs Java Server Faces
Similar Threads
Why it is better then JSF?
Daemonizing & Recalling an App
Java ServerFaces
dynamic method parameters
Info about Java Web Controls