• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts with JSF  RSS feed

 
Dana Hanna
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is being said that while JSF overlaps Struts, they can be used to complement one another. Could you explain how they could be used together, and what are the advantages?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, I think Struts is a MVC model, where the ActionForm acts as the controller, and the JSP is the view.
For JSF, it can generate client-side component, it can thus work with JSP to provide more fancy user-interface in a standardize way. (Just like what JSTL tries to do).
Nick.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nicholas Cheung:
Basically, I think Struts is a MVC model, where the ActionForm acts as the controller, and the JSP is the view.
For JSF, it can generate client-side component, it can thus work with JSP to provide more fancy user-interface in a standardize way. (Just like what JSTL tries to do).
Nick.

I don't think this is entirely acccurate. JSF can't provide anything that HTML can't provide in terms of the UI. It is no more standardized than HTML is. Also, JSTL has absolutely nothing to do with rendering UI Components for Web Applications.
For some additional info on Struts and JSF you can read :
http://www.coderanch.com/t/284419/JSP/java/JSF-Replacement-Struts
 
Bill Dudney
Author
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Greg,
You are correct, that other thread sums up the Struts/JSF stuff well.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!