jQuery in Action, 3rd edition
The moose likes Struts and the fly likes struts and jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and jsf" Watch "struts and jsf" New topic

struts and jsf

kamalkant rajput

Joined: Nov 26, 2007
Posts: 22
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

Joined: Jun 16, 2007
Posts: 106
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.

Thank you,
Don Brown

Joined: Apr 22, 2008
Posts: 25
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: struts and jsf
It's not a secret anymore!