Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts and jsf

 
kamalkant rajput
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just wanted to ask that now a days JSF is getting so much popularity then what will be the future of struts.
 
Reehan Lalkhanwar
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSF has most of the work, like validations, done at the server end which, pretty much, affects performance. JSF needs additional support to turn it into client side validations.
I think struts is here to stay, mainly because of the large community that supports struts.
 
Don Brown
author
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd also add the two are not mutually exclusive. JSF's sweet spot is its server-side UI component framework, and I'd say Struts' sweet spot is its MVC controller. With the Struts 2 JSF plugin, you can use Struts 2 to handle the request process, even use Struts 2 actions, but then hand off to JSF to render the HTML to the browser. Spring is creating a JSF integration library for Spring MVC that takes a similar approach.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic