欢迎来到天天文库
浏览记录
ID:34452500
大小:198.76 KB
页数:19页
时间:2019-03-06
《14_j2ee_web_component_introductionnew》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、J2EEWebComponentIntroductionUnit14UnitobjectivesAftercompletingthisunit,youshouldbeableto:UnderstandthestagesinthedevelopmentofWebapplicationsDescribethemodel-view-controller(MVC)designpatternUnderstandtheimportanceofMVCinJ2EEapplicationsDescribethewebcomponentsan
2、dcontainersprovidedbyaJ2EEplatformDescribethewebarchitectureofJ2EE2WebApplicationEvolution–StaticClientNetworkServerHTTPRequestWebBrowserWebServerHTTPResponseFileSystemOrganizationswanttomaketheirinformationavailabletoasmanypeopleintheworldaspossibleThiscanbeachiev
3、edbyusingtheWeb,deliveringtheinformationasstaticHTMLpages3WebApplicationEvolution–AppletsClientNetworkServerWebBrowserHTTPRequestwithJVMWebServerHTTPResponseFileSystemWithstaticHTML,usersseepassivepagepresentationswhicharealwaysthesamePresentationcanbeimprovedwithJa
4、vaappletsorotherclient-sideprograms4WebApplicationEvolution–ServletsClientHTTPRequestServerNetworkWebBrowserWebServerPlug-inRequestsforRequestsforstaticdynamicresourcesresourcesHTTPResponseDynamicWebServerresponseWebContainerFileSystemAppletscannotaccessdataonback-en
5、dsystemsAWebcontainercanprovideserver-sidecomponents(suchasservlets)togeneratedynamiccontent5WebApplicationEvolution–JSPPagesservice(req,res)WebContainerServletmethods()RequestJavaBeanforward(req,res)Responsemethods()RequestDispatcherservice(req,res)JavaServerPageSe
6、rvletsgivepoorseparationbetweenbusinesslogicandpresentationlogicUseJavaServerPagesandJavaBeanstoimproveseparation6WebApplicationEvolution–ScalabilityWebWebBrowserContainerHTTPWebServerContainerBusinessrequirementsofteninvolvehighavailabilityImprovedperformancemaybe
7、requiredasbusinessgrowsBoththeserequirementscanbeachievedthroughscalingServerscanprovideredundancyinthesystemBysharingtheloadbetweenservers,performancecanbeenhanced7TheModel-View-ControllerPatternModel-View-Controller(MVC)isadesignpatternVerywidelyusedandregarded
8、asacoreconceptinJ2EEdevelopmentVariouspracticalbenefits(coveredinmoredetaillater)PromotescodereuseReducesdevelopmenttime
此文档下载收益归作者所有
点击更多查看相关文章~~