毕业设计论文基于JSP的中华美食网网站设计_第1页
毕业设计论文基于JSP的中华美食网网站设计_第2页
毕业设计论文基于JSP的中华美食网网站设计_第3页
毕业设计论文基于JSP的中华美食网网站设计_第4页
毕业设计论文基于JSP的中华美食网网站设计_第5页
已阅读5页,还剩63页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

至此为止,我的本科毕业设计的主要工作以及对毕业设计的总体介绍就基本告以结束了。从一开始的自主选题,到后来的构思初步成型,提交开题报告,再到最后的程序设计,论文定稿,经历了将近一个学期的时间。在这一百多个日子里,我经历了一开始的迷茫与无从下手,经历了无法解决bug的沮丧,也经历过无数个无眠的夜晚。在这众多的日日夜夜里,多亏了校内和校外指导老师的耐心指导,以及周围同学的热心帮助,我才可以顺利地完成自己的任务,获得今天的成果。中华美食网的设计,对我来说还是有一定难度的,但是,有难度才会有挑战,有挑战才能有进步。在这一次的设计里,我付出了比以往的课程设计多几倍的心血与耐心,本次的任务,自主完成,没有了团队合作,没有了对队友的依赖,所以,压力也比以往大了好多。但是,正是因为有压力,才大大激发了我迎难而上的动力,也是这些动力,使我最大程度的将大学四年来学到的知识加以利用,并且也学到了很多书本中和课堂上没有接触过的知识。就我个人来说,此次毕业设计的成果,我还是比较满意的,因为作为一个初出茅庐的大四毕业生,我已经尽了最大的努力去不断开发它、完善它,并且见证了它的成功运行。但是,客观来说,我所设计的网站还远远比不上任何一个如今投入运营的网站,我距离一个出色、成功的网站工程师,或者IT工作者,还差得很远。随着毕业设计的结束,我的本科生活也即将要结束了,但是,这绝不会是我学习生涯的结束,相反,我将会用我的一生,去汲取那些我还没有了解的知识,最后,我要谢谢老师以及读者可以花费宝贵的时间及耐心,来阅读我的论文,你们的支持会是我最宝贵的财富!参考文献[1]孙卫琴,李洪成.《Tomcat与JavaWeb开发技术详解》.电子工业出版社,2003年6月:1-205[2]BruceEckel.《Java编程思想》.机械工业出版社,2003年10月:1-378[3]FLANAGAN.《Java技术手册》.中国电力出版社,2002年6月:1-465[4]孙一林,彭波.《Java数据库编程实例》.清华大学出版社,2002年8月:30-210[5]JuberiasPatricia;BelchinMoises.WebProgrammingwithDart.Apress,2015[6]GormanTim;JrgensenInger;CaffreyMelanie.BeginningOracleSQL:forOracleDatabase12c.Apress.2014[7]耿祥义,张跃平.《JSP实用教程》.清华大学出版社,2003年5月1日:1-354[8]孙涌.《现代软件工程》.北京希望电子出版社,2003年8月:1-246[9]萨师煊,王珊.《数据库系统概论》.高等教育出版社,2002年2月:3-460[10]Brown等.《JSP编程指南(第二版)》.电子工业出版社,2003年3月:1-268[11]清宏计算机工作室.《JSP编程技巧》.机械工业出版社,2004年5月:1-410[12]朱红,司光亚.《JSPWeb编程指南》.电子工业出版社,2001年9月:34-307[13]赛奎春.《JSP工程应用与项目实践》.机械工业出版社,2002年8月:23-294致谢在这次毕业设计任务的完成过程中,我要感谢的人有很多。首先,我要感谢对我的工作有很大帮助的校内指导老师田玉玲老师,是您的严格要求和耐心指导,让我不断地学习新的知识,不断地完善毕业设计过程中的每一步,不断超越自己,获得了很大进步。还要感谢我的校外指导老师陈朦朦老师,是您的耐心督促和细心教导,让我发现了自己原来没有发现的问题,也让我一点点摆正了态度,养成了认真细心的优秀品格。其次,我要感谢给予我四年难忘生活的母校:太原理工大学。如果没有工大,我就不会有这段美好的大学生活,就不会获得这么多宝贵的知识,也将不会有机会来完成自己的毕业设计。这四年的时间,母校给予我的绝不仅仅是那一纸文凭,她授予我的学习方法以及做人道理,将会成为我最宝贵的精神财富,令我受用终身!外文原文CombiningJSPandServletsThetechnologyofJSPandServletisthemostimportanttechnologywhichuseJavatechnologytoexploitrequestofserver,anditisalsothestandardwhichexploitbusinessapplication.Javadevelopersprefertouseitforavarietyofreasons,oneofwhichisalreadyfamiliarwiththeJavalanguageforthedevelopmentofthistechnologyareeasytolearnJavatotheotheris"apreparation,runeverywhere"tobringtheconceptofWebapplications,Toachievea"one-preparedeverywhererealized."Andmoreimportantly,iffollowedsomeoftheprinciplesofgooddesign,itcanbesaidofseparatingandcontenttocreatehigh-quality,reusable,easytomaintainandmodifytheapplication.Forexample,ifthedocumentinHTMLembeddedJavacodetoomuch(script),willleadthedevelopedapplicationisextremelycomplex,difficulttoread,itisnoteasyreuse,butalsoforfuturemaintenanceandmodificationwillalsocausedifficulties.Infact,CSDNtheJSP/Servletforum,canoftenseesomequestions,thecodeisverylong,canlogicisnotveryclear,alargenumberofHTMLandJavacodemixedtogether.Thisistherandomdevelopmentofthedefects.EarlydynamicpagesmainlyCGI(CommonGatewayInterface,publicGatewayInterface)technology,youcanusedifferentlanguagesoftheCGIprograms,suchasVB,C/C++orDelphi,andsoon.ThoughthetechnologyofCGIisdevelopedandpowerful,becauseofdifficultiesinprogramming,andlowefficiency,modifycomplexshortcomings,itisgraduallybeingreplacedbythetrend.Ofallthenewtechnology,JSP/Servletwithmoreefficientandeasytoprogram,morepowerful,moresecureandhasagoodportability,theyhavebeenmanypeoplebelievethatthefutureisthemostdynamicsiteofthefuturedevelopmentoftechnology.SimilartoCGI,Servletsupportrequest/responsemodel.Whenacustomersubmitarequesttotheserver,theserverpresentedtherequestServlet,Servletresponsibleforhandlingrequestsandgeneratearesponse,andthengavetheserver,andthenfromtheserversenttothecustomer.AndtheCGIisdifferent,Servletnotgenerateanewprocess,butwithHTTPServeratthesameprocess.Itthreadsthroughtheuseoftechnology,reducetheservercosts.Servlethandlingoftherequestprocessisthis:Whenreceivedfromtheclient'srequest,callingservicemethods,themethodofServletarrivalofthefirstjudgementiswhattypeofrequest(GET/POST/HEAD…),thencallstheappropriatetreatment(DoGet/doPost/doHead…)andgeneratearesponse.Althoughsuchacomplex,infact,simplysaidtoServletisaJavaclass.AndthegeneralcategoryofthedifferenceisthatthistypeoperatinginaServletcontainer,whichcanprovidesessionmanagementandtargetedlife-cyclemanagement.SothatwhenyouusetheServlet,youcangetallthebenefitsoftheJavaplatform,includingthesafetyofthemanagement,useJDBCaccessthedatabaseandcross-platformcapability.Moreover,Servletusingthread,andcandevelopmoreefficientWebapplications.JSPtechnologyisakeyJ2EEtechnology,itatahigherlevelofabstractionofaServlet.ItallowsconventionalstaticanddynamicHTMLcontentgeneratedbycombininganHTMLpagelookslike,butasaServlettorun.TherearemanycommercialapplicationserversupportJSPtechnology,suchasBEAWebLogic,IBMWebSphere,JRun,andsoon.JSPandServletusemorethansimple.IfyouhaveaJSPsupportforWebservers,andaJSPdocument,youcanputitFangdaoanystaticHTMLfilescanbeplaced,donothavetocompile,donothavetopack,donothavetoClassPathsettings,youcanvisitasordinaryWebItdidvisit,theserverwillautomaticallyhelpyoutodootherwork.JSPdocumentlookslikeanordinarystaticHTMLdocument,butinsidecontainsanumberofJavacode.Ituses.Jspthesuffix,usedtotelltheserverthisdocumentinneedofspecialtreatment.WhenwevisitaJSPpage,thedocumentwillfirstbetranslatedintoaJSPengineJavasourcefiles,isactuallyaServlet,andcompiler,andthen,likeotherServlet,fromServletenginetohandle.Servletengineofthistypeloading,handlingrequestsfromcustomers,andtheresultsreturnedtothecustomer.Afteranothervisitthispagetothecustomer,aslongasthepapertherehavebeennochanges,JSPenginehasbeenloadeddirectlycalltheServlet.Ifyouhavealreadybeenmodified,itwillbeonceagaintheimplementationoftheaboveprocess,translate,compileandload.Infact,thisistheso-called"firstpersontopunishment."Becausewhenthefirstvisittotheimplementationofaseriesoftheaboveprocess,sowillspendsometimeaftersuchavisitwouldnot.JavaservletsofferapowerfulAPIthatprovidesaccesstoalltheinformationabouttherequest,thesession,andtheapplication.combiningJSPwithservletsletsyouclearlyseparatetheapplicationlogicfromthepresentationoftheapplication;inotherwords,itletsyouusethemostappropriatecomponenttypefortherolesofModel,ViewandController.Servlets,Filters,andListenersAservletisaJavaclassthatextendsaserverwithfunctionalityforprocessingarequestandproducingaresponse.It'simplementedusingtheclassesandinterfacesdefinedbytheServletAPI.TheAPIconsistsoftwopackages:thejavax.servletpackagecontainsclassesandinterfacesthatareprotocol-independent,whilethejavax.servlet.httppackageprovidesHTTP-specificextensionsandutilityclasses.Whatmakesaservletaservletisthattheclassimplementsaninterfacenamedjavax.servlet.Servlet,eitherdirectlyorbyextendingoneofthesupportclasses.Thisinterfacedefinesthemethodsusedbythewebcontainertomanageandinteractwiththeservlet.ServletLifecycleThewebcontainermanagesallaspectsoftheservlet'slifecycle.Itcreatesaninstanceoftheservletclasswhenneeded,passesrequeststotheinstanceforprocessing,andeventuallyremovestheinstance.ForanHttpServlet,thecontainercallsthefollowingmethodsattheappropriatetimesintheservletlifecycle.BesidesthedoGet()anddoPost()methods,therearemethodscorrespondingtotheotherHTTPmethods:doDelete(),doHead(),doOptions(),doPut(),anddoTrace().Typicallyyoudon'timplementthesemethods;theHttpServletclassalreadytakescareofHEAD,OPTIONS,andTRACErequestsinawaythat'ssuitableformostservlets,andtheDELETEandPUTHTTPmethodsarerarelyusedinawebapplication.It'simportanttorealizethatthecontainercreatesonlyoneinstanceofeachservlet.Thismeansthattheservletmustbethreadsafe--abletohandlemultiplerequestsatthesametime,eachexecutingasaseparatethreadthroughtheservletcode.Withoutgettinglostindetails,yousatisfythisrequirementwithregardstoinstancevariablesifyoumodifythereferencedobjectsonlyintheinit()anddestroy()methods,andjustreadthemintherequestprocessingmethods.CompilingandInstallingaServletTocompileaservlet,youmustfirstensurethatyouhavetheJARfilecontainingallServletAPIclassesintheCLASSPATHenvironmentvariable.TheJARfileisdistributedwithallwebcontainers.Tomcatincludesitinafilecalledservlet.jar,locatedinthecommon/libdirectory.OnaWindowsplatform,youincludetheJARfileintheCLASSPATH.ReadingaRequestOneoftheargumentspassedtothedoGet()anddoPost()methodsisanobjectthatimplementstheHttpServletRequestinterface.Thisinterfacedefinesmethodsthatprovideaccesstoawealthofinformationabouttherequest.GeneratingaResponseBesidestherequestobject,thecontainerpassesanobjectthatimplementstheHttpServletResponseinterfaceasanargumenttothedoGet()anddoPost()methods.Thisinterfacedefinesmethodsforgettingawriterorstreamfortheresponsebody.Italsodefinesmethodsforsettingtheresponsestatuscodeandheaders.UsingFiltersandListenersTheservletspecificationdefinestwocomponenttypesbesideservlets:filtersandlisteners.ThesetwotypeswereintroducedintheServlet2.3specification,soifyou'reusingacontainerthatdoesn'tyetsupportthisversionofthespecification,I'mafraidyou'reoutofluck.FiltersAfilterisacomponentthatcaninterceptarequesttargetedforaservlet,JSPpage,orstaticpage,aswellastheresponsebeforeit'ssenttotheclient.Thismakesiteasytocentralizetasksthatapplytoallrequests,suchasaccesscontrol,logging,andchargingforthecontentortheservicesofferedbytheapplication.Afilterhasfullaccesstothebodyandheadersoftherequestandresponse,soitcanalsoperformvarioustransformations.OneexampleiscompressingtheresponsebodyiftheAccept-Languagerequestheaderindicatesthattheclientcanhandleacompressedresponse.AfiltercanbeappliedtoeitheraspecificservletortoallrequestsmatchingaURLpattern,suchasURLsstartingwiththesamepathelementsorhavingthesameextension.ListenersListenersallowyourapplicationtoreacttocertainevents.PriortoServlet2.3,youcouldhandleonlysessionattributebindingevents(triggeredwhenanobjectwasaddedorremovedfromasession).Youcoulddothisbylettingtheobjectsavedasasessionattribute(usingtheHttpSession.setAttribute()method)implementtheHttpSessionBindingListenerinterface.Withthenewinterfacesintroducedinthe2.3versionofthespecification,youcancreatelistenersforservletcontextandsessionlifecycleeventsaswellassessionactivationandpassivationevents(usedbyacontainerthattemporarilysavessessionstatetodiskormigratesasessiontoanotherserver).Anewsessionattributeeventlisteneralsomakesitpossibletodealwithattributebindingeventsforallsessionsinoneplace,insteadofplacingindividuallistenerobjectsineachsession.ThenewtypesoflistenersfollowthestandardJavaeventmodel.Inotherwords,alistenerisaclassthatimplementsoneormoreofthelistenerinterfaces.Theinterfacesdefinemethodsthatcorrespondtoevents.Thelistenerclassisregisteredwiththecontainerwhentheapplicationstarts,andthecontainerthencallstheeventmethodsattheappropriatetimes.InitializingSharedResourcesUsingaListenerBeanslikethistypicallyneedtobeinitializedbeforetheycanbeused.Forinstance,theymayneedareferencetoadatabaseorsomeotherexternaldatasourceandmaycreateaninitialinformationcacheinmemorytoprovidefastaccesseventothefirstrequestfordata.YoucanincludecodeforinitializationofthesharedresourcesintheservletandJSPpagesthatneedthem,butamoremodularapproachistoplaceallthiscodeinoneplaceandlettheotherpartsoftheapplicationworkontheassumptionthattheresourcesarealreadyinitializedandavailable.Anapplicationlifecyclelistenerisaperfecttoolforthistypeofresourceinitialization.Thistypeoflistenerimplementsthejavax.servlet.ServletContextListenerinterface,withmethodscalledbythecontainerwhentheapplicationstartsandwhenitshutsdown.PickingtheRightComponentTypeforEachTaskTheProjectBillboardapplicationintroducedisafairlycomplexapplication.Halfthepagesarepurecontrollerandbusinesslogicprocessing,itaccessesadatabasetoauthenticateusers,andmostpagesrequireaccesscontrol.Inreallife,itwouldlikelycontainevenmorepages,forinstance,pagesforaccesstoashareddocumentarchive,timeschedules,andasetofpagesforadministration.Astheapplicationevolves,itmaybecomehardtomaintainasapureJSPapplication.It'seasytoforgettoincludetheaccesscontrolcodeinnewpages.ThisisclearlyanapplicationthatcanbenefitfromusingacombinationofJSPpagesandthecomponenttypesdefinedbytheservletspecificationfortheMVCroles.Let'slookatthemainrequirementsandseehowwecanmapthemtoappropriatecomponenttypes:Databaseaccessshouldbeabstracted,toavoidknowledgeofaspecificdataschemaordatabaseengineinmorethanonepartoftheapplication:beansintheroleofModelcanbeusedtoaccomplishthis.Thedatabaseaccessbeansmustbemadeavailabletoallotherpartsoftheapplicationwhenitstarts:anapplicationlifecycleeventlisteneristheperfectcomponenttypeforthistask.Onlyauthenticatedusersmustbeallowedtousetheapplication:afiltercanperformaccesscontroltosatisfythisrequirement.RequestprocessingisbestdonewithJavacode:aservlet,actingastheController,fitsthebill.Itmustbeeasytochangethepresentation:thisiswhereJSPshines,actingastheView.Addingservlets,listeners,andfilterstothemixminimizestheneedforcomplexlogicintheJSPpages.PlacingallthiscodeinJavaclassesinsteadmakesitpossibletousearegularJavacompileranddebuggertofixpotentialproblems.CentralizedRequestProcessingUsingaServletWithaservletasthecommonentrypointforallapplicationrequests,yougaincontroloverthepageflowoftheapplication.Theservletcandecidewhichtypeofresponsetogeneratedependingontheoutcomeoftherequestedaction,suchasreturningacommonerrorpageforallrequeststhatfail,ordifferentresponsesdependingonthetypeofclientmakingtherequest.Withthehelpfromsomeutilityclasses,itcanalsoprovideservicessuchasinputvalidation,I18Npreparations,andingeneral,encourageamorestreamlinedapproachtorequesthandling.WhenyouuseaservletasaController,youmustdealwiththefollowingbasicrequirements:AllrequestsforprocessingmustbepassedtothesingleControllerservlet.Theservletmustbeabletodistinguishrequestsfordifferenttypesofprocessing.Hereareotherfeaturesyouwillwantsupportfor,eventhoughtheymaynotberequirementsforallapplications:Astrategyforextendingtheapplicationtosupportnewtypesofprocessingrequestsinaflexiblemanner.Amechanismforchangingthepageflowoftheapplicationwithoutmodifyingcode.MappingApplicationRequeststotheServletThefirstrequirementforusingaControllerservletisthatallrequestsmustpassthroughit.Thiscanbesatisfiedinmanyways.Ifyouhaveplayedaroundabitwithservletspreviously,you'reprobablyusedtoinvokingaservletwithaURIthatstartswith/myApp/servlet.ThisisaconventionintroducedbySunsJavaWebServer(JWS),thefirstproducttosupportservletsbeforetheAPIwasstandardized.Mostservletcontainerssupportthisconventiontoday,eventhoughit'snotformallydefinedintheservletspecification.中文翻译JSP和Servlet结合使用

JSP和Servlet的技术是使用Java开发服务器端的最重要的技术,并且它也是其中利用业务的标准。应用程序开发者喜欢使用它的原因有多种,其中之一是已经熟悉了Java语言这一技术的发展很容易学习Java到另一种是“一次编写,到处运行”带来的概念Web应用程序,实现了“一个到处都是准备实现的。”而更重要的是,如果遵循一些良好的设计原则,可以说分离和内容的创造高品质,可重复使用,易于维护和修改应用程序。例如,如果在HTML文档嵌入的Java代码过多(脚本),会导致该开发的应用是极其复杂的,difficultto读,这是不容易再利用,同时也为将来的维护和修改willalso造成困难。事实上,CSDN的JSP/Servlet的论坛上,经常可以看到一些问题,代码很长,可逻辑不是很清楚,大量的HTML混合在一起的Java代码。这是随机发展的缺陷。早期的动态网页主要是CGI(通用网关接口,公共网关接口)技术,你可以使用CGI程序的不同的语言,如VB,C/C++或Delphi,等等。虽然CGI的技术被开发出来,由于困难的编程,效率低,modifycomplex缺点和强大,它正逐渐被取代的趋势。在所有的新技术,JSP/Servlet的使用更有效,更容易编程,功能更强大,更安全,更具有良好的便携性,他们已经有许多人认为,未来是科技的未来发展最有活力的网站。

类似CGI,支持Servlet的请求/响应模型。当客户提交请求到服务器,该服务器提供的请求的Servlet,Servlet的负责处理请求和产生响应,然后送给该服务器,然后从发送给客户的服务器。和CGI的不同的是,Servlet的不产生新的过程,但用在同一过程HTTP服务器。它通过线程技术的使用,降低服务器成本。申请过程中的Servlet处理是这样的:当来自客户端的请求接收呼叫服务的方法,第一判断的Servlet的到来的方法是什么类型的请求(GET/POST/HEAD...),然后调用相应的处理(的doGet/的doPost/doHead...),并产生一个响应。

虽然这样一个复杂的,其实只是说Servlet是一个Java类。和差的一般类别的是,这种类型在Servlet容器,它可以提供会话管理和有针对性的生命周期管理操作。所以,当你使用Servlet中,你可以得到Java平台的所有好处,包括对安全管理,使用JDBC访问数据库和跨平台的能力。此外,使用Servlet线程,并可以开发更高效的Web应用程序。

JSP技术是一个关键的J2EE技术​​,它在一个Servlet的更高的抽象水平。它允许通过组合一个HTML页面看起来像生成常规的静态和动态HTML内容,但作为一个Servlet运行。有许多商业应用服务器支持JSP技术,比如BEA的WebLogic,IBM的WebSphere,的JRun,等等。JSP和Servlet使用超过简单。如果您有Web服务器一个JSP支持,以及一个JSP文件,你可以把它放倒任何静态HTML文件可以放置,不必编译,不用收拾,不必类路径设置,您可以访问作为普通的Web它做访问时,服务器会自动帮你做其他的工作。

JSP文件看起来像一个普通的静态HTML文件,但里面包含了一些Java代码。它使用。JSP后缀,用来告诉服务器这个文件需要特殊处理。当我们访问一个JSP页面,文件会先被翻译成JSP引擎Java源文件,实际上是一个Servlet和编译器,然后,像其他的Servlet,由Servlet引擎来处理。这种类型的负荷的servlet引擎,处理返回给客户从客户的要求,并把结果接连访问此页面给客户,只要纸张没有出现过变化,JSP引擎已经加载直接调用Servlet的。如果您已经修改,这将是再一次上述过程的执行,翻译,编译并加载。其实,这就是所谓的“第一人的惩罚。”因为当第一参观一系列上述过程的执行,所以会花一些时间后,这样的访问不会。

Javaservlet为提供了一个功能强大的API,它提供所有有关的信息访问请求,会话和应用程序。JSP与servlet的结合可以让你清楚地从应用程序的演示分离应用逻辑;换句话说,它可以让您用最合适的组件类型的模型,视图和控制器的角色。Servlet,过滤器和监听器

servlet是延伸一个服务器功能用于处理请求和产生响应的Java类。它的使用定义的类和接口实现由ServletAPI。该API由两个包:javax.servlet包中包含类和接口是协议无关,而javax.servlet.http包提供HTTP特定的扩展和实用程序类。是什么让一个servlet一个servlet是类实现名为javax.servlet.Servlet接口,可以直接或通过扩展支持类之一。这个接口定义由Web容器来管理,并与servlet交互的方法。Servlet的生命周期

Web容器管理servlet的生命周期的所有方面。它创建一个实例需要时servlet类的,传递请求的实例进行处理,并最终去除实例。对于HttpServlet中,容器调用在servlet的生命周期中适当的时间使用下列方法。

除了使用doGet()和doPost()方法,有相应于其它HTTP方法的方法:doDelete(),doHead(),doOptions(),doPut(),和doTrace()。通常情况下,你不实现这些方法;HttpServlet类已经照顾HEAD,OPTIONS,TRACE和请求的方式,是适合大多数的servlet和DELETE和PUTHTTP方法是在Web应用程序很少使用。

重要的是要认识到,容器创建每个Servlet只有一个实例。这意味着,该servlet必须是线程安全-能够处理在多个请求同时,每一个执行通过小服务程序代码一个单独的线程。没有得到在细节丢失,你满足这个要求的问候实例变量,如果你修改引用的对象只有在init()和destroy()方法,只是读取它们的请求处理方法。编译和安装一个Servlet

要编译一个servlet,您必须首先确保你有一个包含所有JAR文件ServletAPI的类在CLASSPATH环境变量。JAR文件分发所有的web容器。Tomcat的包括在名为的servlet.jar文件,位于公共/lib目录下。在Windows平台上,您包括在CLASSPATH中的JAR文件。读取请求

之一传递到的doGet()和doPost()方法的参数是一个对象,它实现了HttpServletRequest接口。这个接口定义提供了方法获得了丰富的有关请求的信息。生成响应

除了请求对象,容器传递一个对象来实现的HttpServletResponse接口作为参数传递给的doGet()和doPost()方法。此接口定义得到一个作家或流响应体的方法。它还定义用于设定响应状态码和首部的方法。使用过滤器和监听器

Servlet规范定义的servlet旁边的双组分类型:过滤器和监听器。这两种类型在Servlet2.3规范相继

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论