• Tag library
Why re-invent the wheel, or a tag library? If you cannot find something you need in the library, contribute. In addition, Struts provides a starting point if you are learning JSP tag technology.
• Open source
You have all the advantages of open source, such as being able to see the code and having everyone else using the library reviewing the code. Many eyes make for great code review.
• Sample MVC implementation
Struts offers some insight if you want to create your own MVC implementation.
• Manage the problem space
Divide and conquer is a nice way of solving the problem and making the problem manageable. Of course, the sword cuts both ways. The problem is more complex and needs more management.
Struts cons
• Youth
Struts development is still in preliminary form. They are working toward releasing a version 1.0, but as with any 1.0 version, it does not provide all the bells and whistles.
• Correct level of abstraction
Struts whether to provide the proper level of abstraction? What is abstract page design appropriate level? This is the $ 64K question. Should we allow Java code to access the page in the development of web designers? Some frameworks like Velocity say no, but it provides another language to learn Web development. There are certain reasonable restrictions UI developed Java code access. The most important is to have a little bit of Java web design, he will use a lot of Java. I saw this happen in Microsoft ASP development all the time. In ASP development, you should create a COM object, and then write a little ASP script to stick it together. On the contrary, ASP developers would go crazy with ASP script. I hear "Why wait for a COM developer to create it when I can program it using VBScript?" Struts is helping to limit the Java code requires a number of JSP tag library file. One such library is the logical label generation, management conditions, but this does not prevent the UI developer of fanaticism and Java code. Regardless of the type of framework you decide to use, you should understand the environment in which to deploy and maintain the framework. Of course, this task is easier said than done.
• Limited scope
Struts is a Web-based MVC solution that is meant be implemented with HTML, JSP files, and servlets.
• J2EE application support
Struts need to support JSP1.1 and Servlet2.2 servlet container specification. This in itself will not solve all your installation problems unless Tomcat3.2. I have a lot of iPlanet6.0 with Netscape's, which is supposedly the first J2EE-compliant application server installation library issues. When you encounter problems, I recommend you visit the Struts user mailing list archive.
• Complexity
Separation into parts introduces complexity. There is no doubt that some education will have to understand the Struts. With the changes, it can be frustrating when. Welcome to the Web.
• Future of Struts
B.原文的翻译
Struts——MVC 的一种开放源码实现
本文介绍了Struts的,它是用一个servlet和JavaServer Pages技术MVC完整。 truts可以帮助您控制Web项目中的变化和提高业务水平。虽然你可能永远不会完成一个系统的Struts,但是你可以完成他们的一些想法,你的未来在servlet和JSP页面。论文网
模型-视图-控制器 (MVC)
JSP标签解决了这个问题的一部分。我们必须处理验证,流程控制和更新应用程序等问题的现状。这是MVC的何处的作用。 MVC通过将问题分为三个类别来帮助解决一些在单个模块化方法中遇到的问题:
Model(模型)
模型包含应用程序的核心功能。模型封装的应用程序的状态。有时,它的唯一功能是包含状态。这无知的观点或控制器。 Struts MVC一种开放源码英文文献和中文翻译(2):http://www.youerw.com/fanyi/lunwen_39813.html