This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Greenhorn

Joined: Apr 21, 2011
Posts: 29

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: 15632
    
  15

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.
 
 
subject: Which is better JSF or Struts?
 
Similar Threads
which technology to learn
jsf or struts
To Authors - JSF vs Struts vs AJAX
Struts or JSF
Struts or JSF