查看struts的文档,文档首页中有这样一段话讲明了在什么时候使用struts是个不错的选择.
If you need to write a very simple application, with a handful of pages, then you might consider a "Model 1" solution that uses only server pages.
理解:如果你使用应用知识个简单的应用,使用普通的jsp就可以了.
But, if you are writing a more complicated application, with dozens of pages, that need to be maintained over time, then Struts can help. For more about whether Model 1 or or MVC/Model 2 is right for you, see Understanding JavaServer Pages Model 2 architecture and Issues in Struts Adoption.
理解:但是,如果当是一个比较复杂的应用的时候,项目中有很多需要随时维护的页面时,struts是个不错的选择.

博客主要围绕Struts的使用场景展开。查看Struts文档可知,若为简单应用,使用普通JSP即可;若为复杂应用,有众多需维护的页面,Struts是不错的选择,还可参考相关文档了解更多架构选择。
387

被折叠的 条评论
为什么被折叠?



