File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Which is better JSF or Struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Which is better JSF or Struts?" Watch "Which is better JSF or Struts?" New topic

Which is better JSF or Struts?

Varadhan Sesharaman
Ranch Hand

Joined: Apr 21, 2011
Posts: 30

Hi guys,

I am new to JSF and i have some work exp in Struts.

And I want to clarify a doubt which is better framework Struts or Jsf.

For that I need a justified answer.


Abhinav Taduka

Joined: Feb 02, 2012
Posts: 6

The Advantages of Struts:
Mature and proven
Lots of documentation and reference materials
Large developer base
Broad tool and IDE support
Open source
The Advantages of JavaServer Faces:
Standard UI component model
Robust event handling mechanism
Render kit support for different clients
Highly 'pluggable' - components, view handler, etc
Governed by JCP
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

I switched from Struts to JSF about 5 years ago and haven't looked back.

In theory, Struts is more "bare metal" and therefore can achieve higher performance, but in practice, I don't know of anyone who's actually measured this. You can mix Struts and JSF in the same webapp, incidentally.

In reality, JSF gives better data validation with less work and fewer source files, so unless I have a particular performance issue, I don't worry about any hypothetical speed benefits of Struts over JSF. Assuming that there really are any.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Which is better JSF or Struts?
It's not a secret anymore!