• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts vs JSF

 
Michael Zalewski
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will there be any co-existance between Struts and JSF? Do you see any advantage to rewrite current Struts applications in JSF? In the long term?
Also, another question: One problem I have with Struts is that the Action classes are static and must be tied to HttpServletRequest and HttpServletResponse. Actually that's two problems.
Makes it hard to design a business object using Struts that would respond to a request delivered from any other technology. Also makes it hard to have a command with state, such as a delete with 'Is this OK?' Say you needed a way to add a record to a database from either a web page or a JMS queue. Does JSF handle things better?
 
Lanny Gilbert
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to see the author's answer this question in an even broader fashion. Not only how does JSF integrate with Struts (or does it), what about other web architecture frameworks?
Are these questions answered in the book? If so, then I guess I can read it when I win a copy )
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65533
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see this topic for an answer to the general question re Strut.
 
Michael Zalewski
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't seem to me like there is any conclusion in the above thread.
A lot of people seem to envision using both Struts and JSF on the same project. Seems to me like 'Why limit yourself to one framework whent there are two perfectly good ones to use'.
If I were to develop a new web application, why might I choose to use Struts over JSF? or vice versa?
 
Bill Dudney
Author
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The reason to use JSF over Struts is the architectural differences. JSF is component based not tag based. So you can program to a component model. Also there will be a ton of tool support for JSF.
Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!