【正文】
ity for the Java Developer.The University of Michigan Press,2007:230245。[20] Finocchiaro, Fonndation Classes in a Natshell. People’s Education Press, 2007:221238.附錄ATechnical Overview1. MVC design pattern descriptionMVC pattern is ModelViewcontroller of the acronym, the Chinese translation for mode trying to Controller. MVC applications are always by these three ponents. Event (events) result in Model or Controller to change the View, or to change both at the same time. Models change as long as the Controller of the data or attributes, all depend on View is updated automatically. Similarly, the important Controller changed the View, View of the Model from the potential to obtain data to refresh themselves. MVC pattern was first made smalltalk language research group applied to interactive applications. Java language is objectoriented language, it is natural that in the application instances SUN remending MVC model as a framework for developing Web application model. MVC model is an architectural pattern, in fact, other models need to be pleted in collaboration. In the J2EE pattern catalog are monly used service to worker pattern is new, and the service to worker pattern may be focused on control mode, sending mode and the Page Helper pattern.2. Struts2 IntroductionAlthough the claims is a new Struts2 framework, but it is only in terms of relative Struts1. Struts2 with Struts1 than there are indeed many revolutionary improvements, but it is not a new release of the new framework, but in another prominent framework: WebWork developed on the basis of the. To some extent, Struts2 does not inherit Struts139。s ancestry, but the succession WebWork lineage. Struts2 is the WebWork upgrade, rather than an entirely new framework, therefore the stability, performance and other areas have a very good assurance: it absorbed the advantages of both Struts1 and WebWork, therefore, is a very worth the wait framework.Struts2 Action class can implement an Action interface and other interfaces can also be achieved to enable optional and custom services possible. Struts2 provides a ActionSupport to achieve mon base class interface. Action interface is not necessary, any POJO object execute identity can be used as an object Struts2 in Action. Struts2 Action object for each instance of a request to generate a, there is no threadsafety problems. (In fact, servlet containers generate many for each request can be discarded objects, and will not lead to performance and garbage collection issues). Struts2 Action does not depend on the container, allowing Action out of the container to be tested separately. If necessary, Struts2 Action can still access the original Request and Response, however, other elements to reduce or eliminate direct access to HttpServetRequest and HttpServletResponse necessary. Struts2 Action can be initialized, set properties, call methods to test, dependency injection support also makes testing easier. Struts2 using the Action attribute directly as input properties, eliminating the need for the second input object needs. Input properties may have their own (sub) attribute the rich object type. Action properties able to access web pages on the taglibs. Struts2 also supports the ActionForm pattern. rich object types, including business objects, can be used as input/output objects. This ModelDriven feature simplifies the taglib reference to the POJO input objects. Struts2 can use JSTL, but also supports a more powerful and flexible expression language Object Graph Notation Language (OGNL). Struts2 using the ValueStack technology, so that the value of taglib to access your pages without the need to (view) and object to bind together. ValueStack Strategy Yun3. Spring IntroductionSpring is an opensource framework, created by Rod Johnson. It is the development of enterprise applications in order to solve the hybrid nature of hair created. Spring using the basic JavaBean to plete before the EJB is only possible to plete things. However, Spring is not limited to the use of serverside development. From the simplicity, testability, and loose coupling point of view, any Java application can benefit from the Spring.Objective: To solve the plexity of enterprise application development.Function: Using the basic JavaBean to replace EJB, and provides additional functionality of enterprise applications.Range: Any Java application.4. Hibernate IntroductionHibernate is an open source objectrelational mapping framework, it conducted a lightweight JDBC object package so that Java programmers can use the objectoriented programming ideas to manipulate the database. Hibernate can use EJB in J2EE architecture to replace the CMP, to plete data persistence. It can be applied to any use of JDBC occasions, both in the Javaclient program useful, you can also Servlet / JSP in Web applications using theHibernate API is simple to learn, and it is the interaction with the program flow quite naturally. Call it in place, we can achieve this objective. It brings a lot of automation and codesaving benefits, so I spent a little time to learn it was worth it. But also get another benefit, that is, the code do not care to use the database type (otherwise even need to know). The pany where I once had in the development process later was forced to replace the database vendor experience. This will cause a huge disaster, but the help of Hibernate, simply modify the Hibernate configuration files.技術(shù)簡(jiǎn)介1. MVC設(shè)計(jì)模式介紹MVC模式是“ModelViewcontroller”的縮寫(xiě),中文翻譯為”模式試圖控制器”。MVC應(yīng)用程序總是由這三個(gè)部分組成。Event導(dǎo)致Controller改變Model或View,或者同時(shí)改變兩者。只要Controller改變了Models的數(shù)據(jù)或者屬性,所有依賴的View都會(huì)自動(dòng)更新。類似的,重要Controller改變了View,View會(huì)從潛在的Model中獲取數(shù)據(jù)來(lái)刷新自己。MVC模式最早是smalltalk語(yǔ)言研究團(tuán)提出的,應(yīng)用于交互應(yīng)用程序中。Java語(yǔ)言是面向?qū)ο笳Z(yǔ)言,很自然的SUN在應(yīng)用程序事例中就推薦MVC模式作為開(kāi)發(fā)Web應(yīng)用的架構(gòu)模式。MVC模式是一種架構(gòu)模式,其實(shí)需要其他模式協(xié)作完成。在J2EE模式目錄中,通常采用service to worker模式是新,而service to worker模式可由集中控制器模式,派遣器模式和P