This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Say you decide to ignore the advice and pass your ActionForms as parameters to your model classes. Everything will work great, all is well, life is good.
Your boss or client comes to you and says, "The CEO read in a airline magazine that JSF with AJAX is really the way to go, and Struts is really out of date. I want you to convert this application to JSF and Ajax."
You're thinking: OK, it's cool, I've used Model/View/Controller. I can just take the Model code that I've written and plug it into a JSF view.
Since you made your Model class dependent on a Struts class (org.apache.struts.action.ActionForm) as soon as you remove struts.jar from your project, the model classes will no longer compile. You now have the choice of leaving the struts.jar file in the project just to make the project compile, or change your model classes.
The moral of the story: Tightly coupling your model classes with Struts or any other view framework is a bad thing. [ July 05, 2006: Message edited by: Merrill Higginson ]