届外文资料翻译模板.docx
- 文档编号:28994011
- 上传时间:2023-07-20
- 格式:DOCX
- 页数:18
- 大小:40.23KB
届外文资料翻译模板.docx
《届外文资料翻译模板.docx》由会员分享,可在线阅读,更多相关《届外文资料翻译模板.docx(18页珍藏版)》请在冰豆网上搜索。
届外文资料翻译模板
毕业设计(论文)外文资料翻译
系别计算机信息与技术系
专业计算机科学与技术
班级B10060
姓名
学号B10060
外文出处
附件1.原文;2.译文
2014年3月
NetworkSecurity(TimesNewRoman,三号,加粗,居中,4倍行距)
Securityisabroadtopicandcoversamultitudeofsins.Initssimplestform,itisconcernedwithmakingsurethatnosypeoplecannotread,orworseyet,secretlymodifymessagesintendedforotherrecipients.Itisconcernedwithpeopletryingtoaccessremoteservicesthattheyarenotauthorizedtouse.ItalsodealswithwaystotellwhetherthatmessagepurportedlyfromtheIRSsaying:
PaybyFridayorelseisreallyfromtheIRSandnotfromtheMafia.Securityalsodealswiththeproblemsoflegitimatemessagesbeingcapturedandreplayed,andwithpeopletryingtodenythattheysentcertainmessages.
(TimesNewRoman,小四号,行距固定值20磅,段首空2字符,注意对齐方式)
Networksecurityproblemscanbedividedroughlyintofourcloselyintertwinedareas:
secrecy,authentication,nonrepudiation,andintegritycontrol.Secrecy,alsocalledconfidentiality,hastodowithkeepinginformationoutofthehandsofunauthorizedusers.Thisiswhatusuallycomestomindwhenpeoplethinkaboutnetworksecurity.Authenticationdealswithdeterminingwhomyouaretalkingtobeforerevealingsensitiveinformationorenteringintoabusinessdeal.Nonrepudiationdealswithsignatures:
Howdoyouprovethatyourcustomerreallyplacedanelectronicorderfortenmillionleft-handeddoohickeysat89centseachwhenhelaterclaimsthepricewas69cents?
Ormaybeheclaimsheneverplacedanyorder.Finally,howcanyoubesurethatamessageyoureceivedwasreallytheonesentandnotsomethingthatamaliciousadversarymodifiedintransitorconcocted?
...........
(外文资料内容应与本人毕业设计(论文)内容相关性好,长度保证汉字在3000字以上,原文必须注明出处:
作者名、书刊名、起止页码、出版日期(期刊号)、出版单位等)
网络安全(宋体,三号,加粗,居中,4倍行距)
安全是一个宽泛的主题,也存在大量的问题。
…………………………………
(宋体,小四号,行距固定值20磅,段首首行缩进2字符)
(中文应另起页、单面打印!
)
Struts——anopen-sourceMVCimplementation
ThisarticleintroducesStruts,aModel-View-ControllerimplementationthatusesservletsandJavaServerPages(JSP)technology.StrutscanhelpyoucontrolchangeinyourWebprojectandpromotespecialization.EvenifyouneverimplementasystemwithStruts,youmaygetsomeideasforyourfutureservletsandJSPpageimplementation.
Introduction
WebapplicationsystemisatransactionsystembasedonB(rowser)/S(erver)model.ItexploitsmanykindsofdynamicWebdevelopingtechnologies.Atpresent,Webapplicationdevelopingpatternsandtoolsareoneofthetopicsofthesoftwaredesign.Theydirectlyinfluenceseveralkeyfactorssuchasmaintainability,scalability,stabilityandthesecurity.Inthispaper,thepurposeofMVC[1]-basedWebapplicationdesignpatternistoresolvethetwofactors–maintainabilityandscalability,whicharethestubbornproblemsintheWebapplicationdevelopment.ByintroducingtheMVCdesignpatternintotheWebapplicationdevelopment,theimplementationofsystemtransactionlogiccanbeseparatedfromthesystempresentation.
MVCconsistsofthreekindsofobjects.1)theModel:
istheapplicationobject,2)theView:
isitsscreenpresentation,3)theController:
definesthewaytheuserinterfacereactstouserinput.BeforeMVC,userinterfacedesignstendedtolumptheseobjectstogether.However,MVCdecouplesthemtoincreasetheflexibilityandreuse.MVCdecouplesviewsandmodelsbyestablishinga“subscribe/notify”protocolbetweenthem.Aviewmustensurethatitsappearancereflectsthestateofthemodelcorrectly.Wheneverthemodel’sdatachanges,themodelnotifiesviewsthatdependonit.Inresponse,eachviewgetsanopportunitytoupdateitself.Thisapproachletsyouattachmultipleviewstoamodeltoprovidedifferentpresentations.Youcanalsocreatenewviewsforamodelwithoutrewritingit.
Model-View-Controller(MVC)
JSPtagssolvedonlypartofourproblem.Westillhaveissueswithvalidation,flowcontrol,andupdatingthestateoftheapplication.ThisiswhereMVCcomestotherescue.MVChelpsresolvesomeoftheissueswiththesinglemoduleapproachbydividingtheproblemintothreecategories:
∙Model
Themodelcontainsthecoreoftheapplication'sfunctionality.Themodelencapsulatesthestateoftheapplication.Sometimestheonlyfunctionalityitcontainsisstate.Itknowsnothingaboutthevieworcontroller.
∙View
Theviewprovidesthepresentationofthemodel.Itisthelookoftheapplication.Theviewcanaccessthemodelgetters,butithasnoknowledgeofthesetters.Inaddition,itknowsnothingaboutthecontroller.Theviewshouldbenotifiedwhenchangestothemodeloccur.
∙Controller
Thecontrollerreactstotheuserinput.Itcreatesandsetsthemodel.
MVCModel2
TheWebbroughtsomeuniquechallengestosoftwaredevelopers,mostnotablythestatelessconnectionbetweentheclientandtheserver.Thisstatelessbehaviormadeitdifficultforthemodeltonotifytheviewofchanges.OntheWeb,thebrowserhastore-querytheservertodiscovermodificationtothestateoftheapplication.
Anothernoticeablechangeisthattheviewusesdifferenttechnologyforimplementationthanthemodelorcontroller.Ofcourse,wecoulduseJava(orPERL,C/C++orwhatever)codetogenerateHTML.Thereareseveraldisadvantagestothatapproach:
∙Javaprogrammersshoulddevelopservices,notHTML.
∙Changestolayoutwouldrequirechangestocode.
∙Customersoftheserviceshouldbeabletocreatepagestomeettheirspecificneeds.
∙Thepagedesignerisn'tabletohavedirectinvolvementinpagedevelopment.
∙HTMLembeddedintocodeisugly.
FortheWeb,theclassicalformofMVCneededtochange.Figure4displaystheWebadaptationofMVC,alsocommonlyknownasMVCModel2orMVC2.
TheActionServletclass
Doyourememberthedaysoffunctionmappings?
Youwouldmapsomeinputeventtoapointertoafunction.Ifyouwhereslick,youwouldplacetheconfigurationinformationintoafileandloadthefileatruntime.FunctionpointerarrayswerethegoodolddaysofstructuredprogramminginC.
LifeisbetternowthatwehaveJavatechnology,XML,J2EE,andallthat.TheStrutsControllerisaservletthatmapsevents(aneventgenerallybeinganHTTPpost)toclasses.Andguesswhat--theControllerusesaconfigurationfilesoyoudon_thavetohard-codethevalues.Lifechanges,butstaysthesame.
ActionServletistheCommandpartoftheMVCimplementationandisthecoreoftheFramework.ActionServlet(Command)createsandusesAction,anActionForm,andActionForward.Asmentionedearlier,thestruts-config.xmlfileconfigurestheCommand.DuringthecreationoftheWebproject,ActionandActionFormareextendedtosolvethespecificproblemspace.Thefilestruts-config.xmlinstructsActionServletonhowtousetheextendedclasses.Thereareseveraladvantagestothisapproach:
∙Theentirelogicalflowoftheapplicationisinahierarchicaltextfile.Thismakesiteasiertoviewandunderstand,especiallywithlargeapplications.
∙ThepagedesignerdoesnothavetowadethroughJavacodetounderstandtheflowoftheapplication.
∙TheJavadeveloperdoesnotneedtorecompilecodewhenmakingflowchanges.
CommandfunctionalitycanbeaddedbyextendingActionServlet.
TheActionFormclass
ActionFormmaintainsthesessionstatefortheWebapplication.ActionFormisanabstractclassthatissub-classedforeachinputformmodel.WhenIsayinputformmodel,IamsayingActionFormrepresentsageneralconceptofdatathatissetorupdatedbyaHTMLform.Forinstance,youmayhaveaUserActionFormthatissetbyanHTMLForm.TheStrutsframeworkwill:
∙ChecktoseeifaUserActionFormexists;ifnot,itwillcreateaninstanceoftheclass.
∙StrutswillsetthestateoftheUserActionFormusingcorrespondingfieldsfromtheHttpServletRequest.Nomoredreadfulrequest.getParameter()calls.Forinstance,theStrutsframeworkwilltakefnamefromrequeststreamandcallUserActionForm.setFname().
∙TheStrutsframeworkupdatesthestateoftheUserActionFormbeforepassingittothebusinesswrapperUserAction.
∙BeforepassingittotheActionclass,Strutswillalsoconductformstatevalidationbycallingthevalidation()methodonUserActionForm.Note:
Thisisnotalwayswisetodo.TheremightbewaysofusingUserActionForminotherpagesorbusinessobjects,wherethevalidationmightbedifferent.ValidationofthestatemightbebetterintheUserActionclass.
∙TheUserActionFormcanbemaintainedatasessionlevel.
Notes:
∙Thestruts-config.xmlfilecontrolswhichHTMLformrequestmapstowhichActionForm.
∙MultiplerequestscanbemappedUserActionForm.
∙UserActionFormcanbemappedovermultiplepagesforthingssuchaswizards.
TheActionclass
TheActionclassisawrapperaroundthebusinesslogic.ThepurposeofActionclassistotranslatetheHttpServletRequesttothebusinesslogic.TouseAction,subclassandoverwritetheprocess()method.
TheActionServlet(Command)passestheparameterizedclassestoActionFormusingtheperform()method.Again,nomoredreadfulrequest.getParameter()calls.Bythetimetheeventgetshere,theinputformdata(orHTMLformdata)hasalreadybeentranslatedoutoftherequeststreamandintoanActionFormclass.
Struts,anMVC2implementation
Strutsisasetofcooperatingclasses,servlets,andJSPtagsthatmakeupareusableMVC2design.ThisdefinitionimpliesthatStrutsisaframework,ratherthanalibrary,butStrutsalsocontainsanextensivetaglibraryandutilityclassesthatworkindependentlyoftheframework.Figure5displaysanoverviewofStruts.
Strutsoverview
∙Clientbrowser
AnHTTPrequestfromtheclientbrowsercreatesanevent.TheWebcontainerwillre
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文 资料 翻译 模板
![提示](https://static.bdocx.com/images/bang_tan.gif)