• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which is better JSF or Struts?

 
Ranch Hand
Posts: 30
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Greenhorn
Posts: 6
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic