This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If I understood it correctly, Struts is, by no way, something you can just avoid if you would like a MVC design in your web page (well, you can use another framework or your own, but certainly JSF doesn't provide a solution for it). In fact, JSF only provides the proper tags for the view tier. In this area, Struts tags and JSF overlap, but just in this area. JSF don't touch the controller area (or client-side validation). So, there is no JSF vs. Struts when you are considering using a MVC framework and you like Struts.
Have you used both ? Is this correct ?
Thanks in advance,
[ January 11, 2005: Message edited by: Juan M. ] [ January 11, 2005: Message edited by: Juan M. ]
In O'Reilly's JavaServer Faces book, Hans Bergsten refers to Struts as an application framework and JSF as a User Interface framework. The former acts as a traffic cop of HTTP requests while the latter focuses on the user interface details. "There's some overlap between Struts and JSF, though. Both define mechanisms for page navigation and validation, for instance, but they are so flexible that you can pick and choose which should be in charge of these tasks."
A good workman is known by his tools.
Joined: Jan 04, 2005
Thank you for your help. Would you advise to buy the Hans Bergsten's book you mention or David Geary's Java Server Faces ? I was looking for a good book about JSF but didn't know which one to read.