J2EE应用中英文对照外文翻译文献.docx

上传人:小飞机 文档编号:3061353 上传时间:2023-03-10 格式:DOCX 页数:17 大小:46.81KB
返回 下载 相关 举报
J2EE应用中英文对照外文翻译文献.docx_第1页
第1页 / 共17页
J2EE应用中英文对照外文翻译文献.docx_第2页
第2页 / 共17页
J2EE应用中英文对照外文翻译文献.docx_第3页
第3页 / 共17页
J2EE应用中英文对照外文翻译文献.docx_第4页
第4页 / 共17页
J2EE应用中英文对照外文翻译文献.docx_第5页
第5页 / 共17页
亲,该文档总共17页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《J2EE应用中英文对照外文翻译文献.docx》由会员分享,可在线阅读,更多相关《J2EE应用中英文对照外文翻译文献.docx(17页珍藏版)》请在三一办公上搜索。

1、J2EE应用中英文对照外文翻译文献J2EE应用中英文对照外文翻译文献 J2EE应用中英文对照外文翻译文献 (文档含英文原文和中文翻译) J2EE应用中英文对照外文翻译文献 SSH based on Web Technology 1、Introduction One preface along with the Java technique of gradual mature and perfect, Be establishment business enterprise class application of standard terrace, the J2 EE terrace got

2、substantial of development .Several technique asked for help from to include in the J2 EE norm : Enterprise JavaBean (EJB), Java Servlets (Servlet), Java Server Pages(JSP), Java Message Service(JMS).etc., development many application system.But, also appeared some problem in the tradition J2 the EE

3、the application of the development the process: 1)the antinomy of of data model and logic model. Currently the database of usage basically and all is relation type database, but the Java be essentially a kind of the language which face to object, object at saving with read usage SQL and JDBC carry o

4、n a database operation and lowered plait distance of efficiency and system of can maintenance; 2)tradition of J2 EE application much the adoption is according to the EJB heavy weight frame, this kind of frame suitable for develop a large business enterprise application, but usage the EJB container c

5、arry on development and adjust to try to need to be waste a great deal of time.For lowering the Ou of code to match sex, exaltation system of development efficiency, this text put forward 1 kind EE according to the J2 of the Struts frame and Spring frame and the Hibernate frame application developme

6、nt strategy. 2、Use the Struts realization MVC structure use the Struts realization MVC structure MVC(Model-View-Controller) is put forward by the Trygve Reenskaug, first drive application in the environment 1 SmallTalk-80, is many to hand over with each other with interface system of constitute foun

7、dation. According to the need of variable of the interface design, MVC hand over with each other constitute of system to resolve into model and see diagram, controller three part. Model(Model) is software processing problem logic at independence in outside manifestation under contents and form circu

8、mstance of inside abstract, packed the core data, logic of problem and function of calculation relation, independence in concrete of interface expression and I/O operation. See diagram(View) mean information and particular form demonstration of model data and logic relation and appearance to the cus

9、tomer. It acquire a manifestation information from the model, there can be many for homology of information dissimilarity of manifestation form or see diagram. The controller(Controller) is a processing the customer hand over with software with each other operation of, its job is control provide mod

10、el in any variety of dissemination, insure a customer interface among the model of rightness should contact; It accept a customer of importation, give the importation feedback model, then realization compute model control, is make model and see diagram to moderate work of parts. Usually 1 see a diag

11、ram rightness should a controller. Model, see separate of diagram and controller, make a model be able to have many manifestation to see diagram. If the customer pass a certain see the controller of diagram change the data of model, all other dependence in these see of data diagram all should reflec

12、tion arrive these variety. When therefore and regardless occurrence what data variety, controller all would variety notice ally see diagram, cause manifestation of renewal. This is actually a kind of variety of model-dissemination mechanism. The Struts frame is to be the item of Apache Jakarta to co

13、nstitute part to publish luck to do at the earliest stage, it inherited MVC of each item characteristic, and did according to the characteristics of J2 EE correspond of variety with expand. The Struts frame was good to combine Jsp , Java Servlet , Java Bean, Talia etc. technique. In the Struts, what

14、 to undertake the controller role in the MVC be an ActionServlet. The ActionServlet is an in general use control module. This control module provided a processing all HTTP claim which send out Struts of entrance point. Its interception 2 with distribute these claim to arrive correspond of action typ

15、e.(these action all of type is Action son type)Moreover the control module is also responsible for using to correspond of claim the parameter fill Action Form(FromBean), and pass action type(ActionBean).Action type the business logic of the interview core, then interview Java Bean or adjust to use E

16、JB. End action type control the power pass follow-up of JSP document, from JSP document born see diagram. All these control logic make use of Struts-config.xml the document come to allocation. See diagram in the Struts frame main from JSP born page completion, the Struts provide abundant of JSP labe

17、l database, this is advantageous to separating performance logic and procedure logic.The model is with 1 or the form existence of several Java Bean. In the Struts, main existence three kinds of Bean, respectively BE: Action, ActionForm, EJB perhaps Java Bean. The Struts frame have no concrete defini

18、tion model layer of realization, in actually the development, model layer usually is close with business logic connect with each other, and want to carry on operation to the first floor data. The underneaths introduction is a kind of development strategy, lead the Hibernate into the model layer of S

19、truts frame, usage it to carry on a data to pack with reflect to shoot, provide hold out for long time turn of support. 4 usage Hibernate and the Struts development J2 EE application 4.1 system structure diagram 3 manifestation according to Hibernate and Struts development strategy of system structu

20、re diagram. 3、Spring the Application Framework Spring isnt particularly a web framework but a generic lightweight application framework with dedicated web support, and show the architectural differences to Struts and WebWork .In contrast to Struts or WebWork, Spring is an application framework for a

21、ll layers: It offers a bean configuration foundation, AOP support, a JDBC abstraction framework, abstract transaction support, etc. It is a very non-intrusive effort: Your application classes do not need to depend on any Spring classes if not necessary, and you can reuse every part on its own if you

22、 like to. From its very design, the framework encourages clean separation of tiers, most importantly web tier and business logic: e.g. the validation framework does not depend on web 3 controllers. Major goals are reusability and testability: Unnecessary container or framework dependencies can be co

23、nsidered avoidable evils. Of course, Springs own web support is nicely integrated with the frameworks general patterns. Nevertheless, replacing the web solution with Struts, WebWork, or the like is easy. Both with Springs web support or a different one, Spring allows for building a true dedicated mi

24、ddle tier in the web container, with the option to reuse exactly the same business logic in test environments or standalone applications. And within J2EE, your business logic will not unnecessarily depend on container services like JTA or EJB - allowing complex, well-architected web applications to

25、run in a simple container like Tomcat or Resin.Note that Spring doesnt generally aim to compete with existing solutions. It rather fosters seamless integration with standards like Servlet, JSP, JTA, JNDI, JDBC, and JDO, and well-suited tools like Hibernate, Velocity, Log4J, and Cauchos Hessian/Burla

26、p. The framework is designed to grow with the needs of your applications, in terms of technology choice: For example, you will probably use JTA via Springs JtaTransactionManager if you need distributed transactions - but only then, as there are perfect replacements for single databases, like DataSou

27、rceTransactionManager or HibernateTransactionManager. 4、The Design of Springs Web Framework Springs web framework is designed around a DispatcherServlet that dispatches requests to handlers, with configurable handler mappings, view resolution, and locale and theme resolution. The default handler is

28、a very simple Controller interface, just offering a ModelAndView handleRequest(request,response) method. This can already be used for application controllers, but you will prefer the included implementation hierarchy, consisting of AbstractController, SimpleFormController, AbstractCommandController,

29、 MultiActionController, AbstractWizardFormController. Application controllers will typically be subclasses of those. Note that you can choose an appropriate base class: If you dont have a form, you dont need a FormController. This is a major difference to Struts. 4 You can take any object as command

30、 or form object: Theres no need to implement an interface or derive from a base class. Springs data binding is highly flexible, e.g. it treats type mismatches as validation errors that can be evaluated by the application, not as system errors. So you dont need to duplicate your business objects prop

31、erties as Strings in your form objects, just to be able to handle invalid submissions, or to convert the Strings properly. Instead, its often preferable to bind directly to your business objects. This is another major difference to Struts which is built around required base classes like Action and A

32、ctionForm - for every type of action. Compared to WebWork, Spring has more differentiated object roles: It supports the notion of a Controller, an optional command or form object, and a model that gets passed to the view. The model will normally include the command or form object but also arbitrary

33、reference data. Instead, a WebWork Action combines all those roles into one single object. WebWork does allow you to use existing business objects as part of your form, but just by making them bean properties of the respective Action class. Finally, the same Action instance that handles the request

34、gets used for evaluation and form population in the view. Thus, reference data needs to be modelled as bean properties of the Action too. These are arguably too many roles in one object.Regarding views: Springs view resolution is extremely flexible. A Controller implementation can even write a view

35、directly to the response, returning null as ModelAndView. In the normal case, a ModelAndView instance consists of a view name and a model Map, containing bean names and corresponding objects (like a command or form, reference data, etc). View name resolution is highly configurable, either via bean n

36、ames, via a properties file, or via your own ViewResolver implementation. The abstract model Map allows for complete abstraction of the view technology, without any hassle: Be it JSP, Velocity, or anything else - every renderer can be integrated directly. The model Map simply gets transformed into a

37、n appropriate format, like JSP request attributes or a Velocity template model. 5、Hibernate the Application Framework Datas holding out for long time layer and Hibernate is one piece according to 5 hold out for long time layer frame, is a kind of realization object and relation of the tool which ref

38、lect to shoot(O/R Mapping), it carried on the object of the lightweight to pack to the JDBC and make procedure member can usage object plait distance thought to operation database. It not only provided to shoot from Java to reflect of data form, but also provided a data a search and instauration mec

39、hanism. Opposite in usage JDBC and SQL to operation database, use Hibernate ability consumedly of exaltation realization of efficiency. The Hibernate frame use allocation document of the form come to the reflect of the definition Java object and data form to shoot relation, in the meantime at more d

40、eep of level of data form of relation explanation for the relations such as inherit of and containment etc. of Java object. Pass the usage HQL language sentence complications of relation the calculate way use the way of object description, to a large extent simplification logarithms according to of

41、search, speed development of efficiency. Have in the Hibernate a simple but keep the API of view, used for to the database mean of object performance search. Want to establish or the modification be these objects, need in the procedure carry on with them to hand over with each other, then tell Hiber

42、nate to keep. So, a great deal of pack hold out for long time turn operation of business logic no longer demand write a trivial JDBC language sentence, make data last long thus the layer got biggest of simplification. 6、Use Hibernate and Struts to develop J2EE application Development practice undern

43、eath combine a development practice, with in the J2 the EE the application very widespread customer register process for example, elucidation above-mentioned system structure is how concrete usage. The process of register is very clear: Customer from register page login.jsp importation register info

44、rmation, system to register the information carry on verification, if exactitude success register, otherwise hint correspond mistake information. In the development process, the usage Eclipse be used as development environment and added to carry to provide to the Struts and the Hibernate in the mean

45、time better control and support of three square plug-in MyEclipse, Web server usage Tomcat, the database chose to use Mysql. Carry on an allocation to the Hibernate first, need to the system auto the born 6 hibernate.cfg. xml carry on modification, allocation good database conjunction of various par

46、ameter and definition the data reflect to shoot a document. Because the Hibernate take of conjunction pond main used for test, the function isnt very good, can pass JNDI will it modification is usage Tomcat of conjunction pond. 7、Summary In this paper, we introduced the Struts application framework.

47、 And introduces some basic knowledge about Spring and Hibernate,. We also show how to use Hibernate and Struts development J2EE, and how it used to be servlets and JSP in combination in the same application. Now that you have a taste of the Strtus Web application, after that we will dig deeper into

48、the theory and practice behind the Struts architectu7 J2EE应用中英文对照外文翻译文献 基于SSH的web技术介绍 1、引言 随着Java技术的逐渐成熟与完善,作为建立企业级应用的标准平台,J2EE平台得到了长足的发展。借助于J2EE规范中包含的多项技术:Enterprise JavaBean(EJB)、Java Servlets(Servlet)、Java Server Pages(JSP)、Java Message Service(JMS)等,开发出了许多应用系统。但是,在传统J2EE应用的开发过程中也出现了一些问题: 1)数据模型和

49、逻辑模型之间的矛盾。目前使用的数据库基本上都是关系型数据库,而Java本质上是一种面向对象的语言,对象在存储和读取时使用SQL和JDBC进行数据库操作,降低了编程的效率以及系统的可维护性。 2)传统的J2EE应用多采用基于EJB的重量级框架,这种框架适合于开发大型企业应用,但是使用EJB容器进行开发和调试需要耗费大量时间。为了降低代码的耦合性,提高系统的开发效率,本文提出了一种基于Struts框架、Spring框架和Hibernate框架的J2EE应用开发策略。 2、用Struts实现MVC架构 MVC由Trygve Reenskaug提出,首先被应用在SmallTalk-80环境中,是许多交互和界面系统的构成基础。根据界面设计可变性的需求,MVC把交互系统的组成分解成模型、视图、控制器三部分。 模型是软件所处理问题逻辑在独立于外在显示内容和形式情况下的内在抽象,封装了1 问题的核心数据、逻辑和功能的计算关系,独立于具体的界面表达和I/O操作。视图把表示模型数据及逻辑关系和状态的信息及特定形式展示给

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号