aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Which is better JSF or Struts?" Watch "Which is better JSF or Struts?" New topic
Author

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.

Thanks

Abhinav Taduka
Greenhorn

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: 16142
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which is better JSF or Struts?