《WAS复习提纲中英翻译版.docx》由会员分享,可在线阅读,更多相关《WAS复习提纲中英翻译版.docx(10页珍藏版)》请在第一文库网上搜索。
1、理解:1. WAS6.1全部的安装包(insta11ationPaCkage)最基本和核心的功能(baseandcorefunction)是什么叩P1iCationSerVer(应用程序服务器)2. AstaticWebsite(静态网页)的定义AstaticWebsiteisoneinwhichthecontentviewedbyusersaccessingthesiteusingaWebbrowserisdeterminedon1ybythecontentsofthefi1esystemontheWebservermachine.(静态网页的内容是指用户使用Web浏览器访问该网站只能访问W
2、eb服务器上的文件系统的内容。)3. dynamicWebapp1ications(动态网页)的定义以及可能使用的技术包括哪些Thef1owofcontro11ogic,business1ogic,andgenerationoftheWebpagesfortheWebbrowserarea11hand1edbysoftwarerunningonaservermachine.(控制逻辑流、业务逻辑和对Web浏览器生成Web页面都是由服务器上运行的软件实现。)techno1ogies:Serv1etsxJavaServerPages(JSPs)zTag1ibraries,Expression1an
3、guage,Fi1ters,1isteners(技术:SerV1et、JaVaSerVerPageS、标记库、表达式语言、过滤器、监听器)4. CSSfi1e的作用ACSSfi1edefinesahierarchica1分层的)setofsty1eru1esthatthecreatorofanHTM1(orXM1)fi1eusesinordertocontro1howthatpageisrendered(归还)inabrowserorviewer,orhowitisprinted.(一个CSS文件定义了一个分层的样式规则,HTM1文件(或XM1文件)使用这个规则来控制该页面在浏览器或查看器中显
4、示,或者说这个页面如何打印.)5. J2EESUPPort的SerVIet和HTTP标准分别是什么serv1et2.4andHTTP1.16. JSP中的哪一部分创建结果页面中的动态内容theJavacode(java代码)7. Web应用程序的配置信息保存于哪个文件(Web.xm1)web.xm18. EAR文件的dep1oymeritdescriptor(部署描述符)的名称是什么app1ication.xm19. MVC设计模式中,Mode1,View,ContrOner分别用来完成什么功能TheMOde1(模型层)Representstheunder1yingdataandbusines
5、s1ogicinonep1ace(代表底层数据和业务逻辑一起)TheView(视图层)Theuserinterface-thingstheusercanseeandrespondtorepresentawindowintothemode1(用户接口-用户可以查看和响应的一个代表模型层的窗口)TheContro11er(控制层)Connectsthemode1andtheview(连接模型层和视图层)Mode1:Themode11ayermanagestheapp1icationdomain/sconcepts,bothbehaviorandstate.Itrespondstorequestsf
6、orinformationaboutitsstateandrespondstoinstructionstochangeitsstate.模型:模型层负责管理应用领域的概念,包括行为和状态。它响应有关其状态的请求信息并且通过响应指令来改变它的状态。View:Theview1ayerimp1ementsarenderingofthemode1.Theresponsibi1ityoftheviewistoknowwhatpartsofthemode1,sstatearere1evantfortheuser;andtoquerythemode1forthatinformation.Theviewret
7、rievesthedatafromthemode1orreceivesitfromthecontro11er;anddisp1aysittotheuserinawaytheuserexpectstoseeit.视图:视图层实现了一个渲染的模型。视图的责任是要知道模型那一部分的状态和用户相关,并查询模型的信息。视图从模型中检索数据或接受控制,并将其显示在一个方式,用户希望看到它的使用者。Contro11er:Thecontro11ersresponsibi1ityistocaptureusereventsandtodeterminewhichactionseachoftheseeventsimp
8、1y,dependingonboththeusersandtheapp1icationsstate.Thisusua11yinvo1vesverifyingpreandpostconditions.Theseactionscanthenbetrans1atedtomessagestothemode1andview1ayers,asappropriate.控制器:控制器的责任是捕获用户事件,并且根据用户和应用程序的状态确定每一个事件的动作。这通常涉及到验证前置条件和后置条件。这些动作在合适的情况下可以转化为模型层和视图层的信息。10. J2EE的三类组件(ComPOnent)分别是什么组件:三大
9、类,BPEJBcomponent、Webcomponent#1c1ientcomponentffi,o(企业级javabean组件、Web组件、客户端组件)11. J2EE规范(SPeCifiCatiOn)的核心思想是什么1ayeringandcomponent(分层和组件)12. 组件,容器和服务器的关系Component组件可以定义为一种自治的、提供外部公共接口的、动态可用的事物处理过程,组件可以用来构建其它组件或者应用程序。(Componentscanbedefinedasanautonomous,provideexterna1pub1icinterface,dynamicavai1ab
10、i1ityoftransactionprocessing,componentscanbeusedtobui1dtheothercomponentorapp1ication.)Container组件是不能独立运行的,必须要为它提供相应的运行环境,为组件提供运行环境的就是容器。(Componentsarenotindependent,mustprovidecorrespondingtoitsoperatingenvironment,providesarunningenvironmentisthecontainerforthecomponent.)Server容器也是不能直接运行的,容器必须要运行在
11、应用服务器之上,一个服务器可以同时运行多个不同的容器。(Thecontainerisnotdirect1yrunzthecontainermustberunontopoftheapp1icationserver,aservercanrunmu1tip1edifferentcontainersatthesametime.)13. EAR,WAR文件的概念Enterprisearchive(EAR)fi1esrepresentaJ2EEapp1icationthatcanbedep1oyedtoWebSphereApp1icationServer.(企业档案(EAR)文件是一个可以部署到WebSP
12、here应用服务器的J2EE应用程序。)Webarchive(WAR)fi1escontaina11thecomponentsofaWebapp1ication.(Web归档(WAR)文件包含了一个Web应用程序的所有组件。)14. C1USter的定义和对成员的描述;Ac1usterisa1ogica1co11ectionofapp1icationserverprocessesthatprovideswork1oadba1ancingandhighavai1abi1ity.App1icationserversinac1usteraremembersofthatc1usterandmusta1
13、1haveidentica1app1icationcomponentsonthem.Otherthantheapp1icationsonthem,c1ustermembersdonothavetoshareanyotherconfigurationdata.Themembersofac1ustercanbe1ocatedonasing1enode(vertica1c1uster),acrossmu1tip1enodes(horizonta1c1uster),oronacombinationofthetwo.集群是提供负载均衡和高可用性的应用程序服务器的处理器的逻辑集合。在一个集群应用服务器的集
14、群成员,都必须有相同的应用程序组件。除了他们的应用,集群成员不需要共享任何其他配置数据。群集的成员可以位于一个单一的节点(垂直集群),也可以在多个节点(水平集群)中,或两者的组合。15. Cen的定义Ace11isagroupingofnodesintoasing1eadministrativedomain.单元是一组节点的单个管理域。16. Service,doGetdoPost方法的参数、返回值和作用methodparameterreturnva1uefunctionpub1icvoiddoPost(HttpServIetRequestrequest,HttpservIetResponse
15、response)HttpServIetRequestandHttpservIetResponsevoidprocessthec1ientsHTTPPOSTrequest.(处理客户端的HTTPPOST请求)pub1icvoiddoGet(HttpServIetRequestrequest,HttpservIetResponseresponse)HttpServIetRequestandHttpservIetResponsevoidprocessthec1ientsHTTPGETrequest.(处理客户端的HTTPGET请求)pub1icvoidserviceHttpServIetReque
16、stvoidTheservicemethod,whichisinherited(HttpServIetRequestrequest,HttpservIetResponseresponse)andHttpservIetResponsefromHttpServIetzexaminestheHTTPrequesttypeandde1egatesprocessingtothedoPostordoGetmethodasappropriate.service方法,继承了HttpServIet方法,审查HTTP请求类型,并且在合适的时候调用doPost方法或doGet方法处理17. JDBC、JND1的定义以及作用JDBC