• Post Reply Bookmark Topic Watch Topic
  • New Topic

To authors: Why is Struts bad and JSF not?

 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

The subject line is a bit clinical,
but I'd like to compare and hear
your opinion on the most important
differences.

Kind regards,

Gian
 
Fintan Conway
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gian Franco Casula:
Hello,

The subject line is a bit clinical,
but I'd like to compare and hear
your opinion on the most important
differences.

Kind regards,

Gian


Hi Gian,

Obviously Struts is not bad, it is just that JSF is better!

The major difference is that Struts is a controller framework rather than a UI component framework and thus does not have a built-in component model. It also does not have the event listener capability that JSF has.

Also Struts is tied to HTML while JSF can render in HTML, WML, xHTML, or your own custom-defined format. JSF can even be used to create portlet applications.

Regards,

Fintan
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After getting the authors reply you might want to see JSF vs Struts.
 
leonard eli
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take also a look at JavaServer Faces Technology Wiki

HTH ;)
Leonard
 
Chris Schalk
author
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's my quick 2 cents..

1. Struts is not bad at all. It's based on a solid architecture and when it was introduced, it did a lot to improve the J2EE Web dev experience.

2. JSF was originally architected by largely the same folks who built Struts, namely Craig McClanahan (he worked on JSF 1.0 - he also provided the foreward for our book). In essence it builds on where Struts leaves off, particularly by providing a sophisticated UI component model.

In general, my advice for Struts users is to have a look at Faces and see if it offers something that they can't easily do in their existing Struts based infrastructures. For example if they want to take advantage of some of the OS components from MyFaces, then they can begin using Faces. If everything works fine though in their Struts env, then that's okay too.

-Chris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!