SSh架构详解英文版Word下载.doc

上传人:b****1 文档编号:13162391 上传时间:2022-10-07 格式:DOC 页数:16 大小:214KB
下载 相关 举报
SSh架构详解英文版Word下载.doc_第1页
第1页 / 共16页
SSh架构详解英文版Word下载.doc_第2页
第2页 / 共16页
SSh架构详解英文版Word下载.doc_第3页
第3页 / 共16页
SSh架构详解英文版Word下载.doc_第4页
第4页 / 共16页
SSh架构详解英文版Word下载.doc_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

SSh架构详解英文版Word下载.doc

《SSh架构详解英文版Word下载.doc》由会员分享,可在线阅读,更多相关《SSh架构详解英文版Word下载.doc(16页珍藏版)》请在冰豆网上搜索。

SSh架构详解英文版Word下载.doc

2HierarchicalWebMechanism 4

3LightweightWebApplicationFramework 4

4StrutsMVCFramework 6

4.1Strutsworkmechanism 6

4.2Views 7

4.3Controller 7

4.4Model 7

5SpringFrameworktechnology 8

5.1SpringFramework 9

5.2mechanism 10

6HibernatePersistentFramework 10

7FrameworkApplicationAnalysis 12

8Conclusion 13

Acknowledgments 14

ApplicationoftheLightweightJ2EEFramework

BasedonSSH

Abstract

Theapplicationsystemfeaturesinsmallormedium-sizedenterpriselieinthegreaterflexibilityandsafetyhighperformance-priceratio.TraditionalJ2EEframeworkcannotadapttotheseneeds,butthesystemapplicationbasedonSSH(Struts+Spring+Hibernate)technologycanbettersatisfysuchneeds.ThispaperanalysessomeintegrationtheoryandkeytechnologiesaboutSSH,andaccordingtotheintegrationconstructsalightweightWEBframework,whichhasintegratedthethreekindsoftechnology,formingthelightweightWEBframeworkbasedonSSHandgaininggoodeffectsinpracticalapplications.

Keywords:

lightweight,webframework,J2EE,Struts,Spring,Hibernate

1Introduction

GenerallytheJ2EEplatform[27]usedinlargeenterpriseapplications,canwellsolvetheapplicationofreliability,safetyandstability,butitsweaknessisthepricehighandtheconstructingcycleislong.Correspondingtothesmallormediumenterpriseapplications,thereplaceapproachisthesystemframeworkoflightweightWEB,includingthemorecommonlyusedmethodswhicharebasedontheStrutsandHibernate.WiththewideapplicationofSpring,thethreetechnologycombinationmaybeabetterchoiceasalightweightWEBframework.ItuseslayeredstructureandprovidesagoodintegratedframeworkforWebapplicationsatalllevelsinminimizingtheInterlayercouplingandincreasingtheefficiencyofdevelopment.Thisframeworkcansolvealotofproblems,withgoodmaintainabilityandscalability.Itcansolvetheseparationofuserinterfaceandbusinesslogicseparation,theseparationofbusinesslogicanddatabaseoperationandthecorrectprocedurecontrollogic,etc.ThispaperstudiesthetechnologyandprincipleofStrutsandSpringandHibernate,presentingaprovedlightweightWEBapplicationframeworkforenterprise.

2HierarchicalWebMechanism

HierarchicalWebframeworkincludingtheuserpresentationlayer,businesslogiclayer,datapersistencelayer,expansionlayeretc,eachlayerfordifferentfunction,respectivelytofinishthewholeapplication.Thewholesystemaredividedintodifferentlogicmodulewithrelativelyindependentandmutual,andeachmodulecanbeimplementedaccordingtodifferentdesign.Itcanrealizethesystemparalleldevelopment,rapidintegration,goodmaintainability,scalability.Figure2.1isatypicallightweightJ2EEapplicationarchitecture.TheWebapplicationlayeredstructurebasicallyisdividedintothreelayers:

thepresentationlayer,businesslogiclayer,datapersistencelayer[28].

Figure2.1typicallightweightJ2EEframework

3LightweightWebApplicationFramework

IntheapplicationbasedonB/Sstructure,Strutsframeworkisusedtoimplementthepresentationlayer,andHibernateisusedtolastinglayer,andSpringisthecoreofthesystem.SpringintegratestheMVCframeworkofStrutsupwardandintegratestheORMframeworkdownward.TheIOCcontainermanagesthedependenciesbetweenthevariouscomponents.

Thedevelopmentpatterncombinedofthosethreekindstechnologyrealizesthefivelayersstructureofapplicationsystem,andconstructsaWebapplicationdevelopmentframework[29].Thisframeprocessingshowsasthefigure3.1.

Figure3.1SystemApplicationFramework

StrutsframeworkrealizedMVCdesignpatternsinthepresentationlayer[30].Inthepresentationlayer,thefunctionsofcontrollerachievedbyActionServletandActionMapping.ActionServletacceptsrequestsfromtheclient,andeachActionMappingrealizesmappingbetweenarequestandaspecificAction.

ViewrealizesbytheTagliboftheJSPpage.ModelrealizesbyActionandActionForm.ActionobjectcallsbusinesslogicmoduleinterfaceandsubmittheresponsetotherightViewcomponents.ActionFormcomponentobjectrealizesgooddataencapsulationforclientform,andrealizesmutualsupportbetweenViewandModel.BusinesslayerachievebyJavaBeanclass,includinginterfacesforActioncalling.TheseJavaBeanalsoencapsulatesHibernaterelationships.Businesslayerthroughdataconversionandpersistencelayertorealizeinteractionwithdatabaseresources.PersistencelayerrealizesbyHibernate.HibernateconvertHQLstatementsinJavaclasstoSQLstatements,andoperatedatasourceswithJDBCdriver,finishingdataoperationsuchasadd,delete,modify.Bottomisarelationaldatabase.

4StrutsMVCFramework

4.1Strutsw

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

当前位置:首页 > 总结汇报 > 其它

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1