Struts vs. JavaServer Faces
Trying to Decide Between Struts and JavaServer Faces?
Compare the advantages of Apache Jakarta Struts and JavaServer Faces.
Use the easy guidelines below to decide when to use JavaServer Faces,
Struts or both.
The Advantages of Struts:
| The Advantages of JavaServer Faces:
|
Basic Guidelines for Deciding between Struts and JavaServer Faces
Use JavaServer Faces only for these situations:
- Most new applications
- JavaServer Faces is the 'future' and a new application is a great
opportunity to get there - just allow time for the learning curve - Applications with sophisticated user interfaces - standard and third party JavaServer Faces components will make it easier to assemble complex UIs
- Applications requiring multiple client support - as new non-HTML render kits become available (WML, XML, etc) you can just plug-in support for other clients
- Smaller Struts applications that require significant upgrades - since both have a basic MVC engine, re-using or converting your current code won't be hard
Use both Struts and JavaServer Faces for these situations:
- Larger Struts applications that require significant upgrades - in this case, keep your current code where possible and use JavaServer Faces for the new parts
- Integrating selected JSF components into an existing Struts applications
- although not quite as easy as doing so in a JavaServer Faces app, you
can insert and 'wire-up' JavaServer Faces components in Struts as well.
Use Struts for these situations:
- Existing Struts applications that need minor enhancements - Struts is not going away anytime soon, so if your Struts app just needs tweaking, stick with it
- New applications with an expedited timeline - if you have to get a project done quickly and your team already knows Struts, the proven technology is a better bet
http://forums.sun.com/thread.jspa?threadID=553126&forumID=427
http://www.simplica.com/strutsvsjsf.htm