




已阅读5页,还剩13页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
外文原文JSPandWEBtechnology1JSPIntroductionJSP(JavaServerPages)isaJava-basedscriptingtechnology.IsadvocatedbySunMicrosystemsInc.,togetherwithanumberofcompaniesinvolvedintheestablishmentofadynamicwebpagetechnologystandards.JSPtechnologyissomewhatsimilartoASPtechnology,ItisatraditionalHTMLpagefile(*.htm,*.html)toinsertJavaprogramsegment(Scriptlet)andJSPtag(tag),ToformtheJSPfile(*jsp).WebdevelopmentwithJSPisacross-platformapplicationsthatcanrununderLinux,butalsoinotheroperatingsystems.IntheJSPofthemanyadvantages,oneofwhichisthatitwillbeHTMLencodedWebpagefromthebusinesslogicseparatedeffectively.JSPaccesswithreusablecomponents,suchasServlet,JavaBeanandJava-basedWebapplications.JSPalsosupportsdirectlyintheWebpageembeddedJavacode.JSPcanbeusedtwowaystoaccessdocuments:JSPdocumentssentbythebrowserrequest,therequestsenttotheServlet.JSPtechnologyusesJavaprogramminglanguage,XML-typetagsandscriptlets,tohaveapackagedealwiththelogicofdynamicpages.Pagetagsandscriptletscanalsoexistintheserveraccesstotheresourcesoftheapplicationlogic.JSPlogicandWebpagedesignanddisplayisolatedandsupportreusablecomponent-baseddesign,Web-basedapplicationsmorequicklyandeasilydeveloped.TheWebserverwhenmeetsvisitstheJSPhomepagetherequest,firstcarriesoutsegment,willthencarryouttheresultcodetoreturntogetherwithJSPinthedocumentHTMLforthecustomer.TheinsertionJavasegmentmayoperatethedatabase,againthedirectionalhomepageandsoon,realizesthefunctionwhichtheestablishmentdynamichomepageneeds.JSPandJavaServletarethesame,isintheserverendexecution,usuallyreturnstothisclientsideisaHTMLtext,thereforeclientside,solongashasthebrowsertobeabletoglanceover.TheJSPpageiscomposedoftheHTMLcodeandtheinsertingJavacode.TheserverinthepagebytheclientsidewasrequestedthatlaterwillcarryonprocessingtotheseJavacode,willthenproducetheHTMLpagewillreturngivestheclientsidethebrowser.JavaServletistheJSPtechnologybase,moreoverthelarge-scaleWebapplicationproceduresdevelopmentneedsJavaServletandtheJSPcoordinationcancomplete.JSPhadtheJavatechnologysimplyeasytouse,completeobject-oriented,hadtheplatformindependency,andsafereliable,mainlyfacedInternetsallcharacteristics.2JSPcomputingtechniqueTocarryonthedynamicwebsiteconvenientlyfastthedevelopment,JSPhasmadetheimprovementinthefollowingseveralaspects,causesittobecomebuildsthecrossplatformfastthedynamicwebsitefirstchoiceplan.2.1carriesonthecontentproductionandthedemonstrationseparatesWiththeJSPtechnology,theWebpagedevelopmentpersonnelmayuseHTMLortheXMLmarkingdesignandtheformattedfinalpage,andusestheJSPmarkingorthetootsyproducesonpagesdynamiccontentoriginally.ProductioncontentslogicissealedinmarksandintheJavaBeansmodule,andtiesupinthescript,allscriptsinserverendmovement.BecausecorelogicissealedinmarksandinJavaBeans,thereforetheWebadministrativepersonnelsandthepagedesigner,caneditandusetheJSPpage,butdoesnotaffectthecontenttheproduction.Intheserverend,theJSPengineexplainedthattheJSPmarkingandthescript,producethecontentwhichrequested,and(orXML)pagesformtransmitstheresultbyHTMLthebrowser.Thisbotharehelpfulintheauthorprotectsowncode,andcanguaranteeanybasedontheHTMLWebbrowserscompleteusability.2.2mayentrustwithheavyresponsibilitythemoduleTheoverwhelmingmajorityJSPpagereliesonmayentrustwithheavyresponsibility,thecrossplatformmodule(JavaBeansorEnterprisetheJavaBeansmodule)carriesoutcomplexprocessingwhichtheapplicationprocedurerequests.Thedevelopmentpersonnelcanshareandexchangetheexecutionordinaryoperationthemodule,orcausesthesemodulesusesformoreusersandthecustomerassociation.Hasacceleratedtheoveralldevelopmentprocessbasedonmodulesmethod,andcauseseachkindoforganizationobtainsbalancedintheirexistingskillandintheoptimizedresultdevelopmentendeavor.2.3usesmarkingTheWebpagedevelopmentpersonnelwillnotbethefamiliarscriptlanguageprogrammers.TheJSPtechnologyhassealedmanyfunctions,thesefunctionsareeasytouse,markingtocarryonthedynamiccontentproductionwithJSPintherelatedXMLtoneed.ThestandardJSPmarkingcanvisitandtheinstantiationJavaBeansmodule,theestablishmentortheretrievalmoduleattribute,downloadsApplet,aswellastheexecutiondifficultywithcodesandthetime-consumingfunctionwithothermethods.2.4adaptstheplatformNearlyallplatformssupportJava,JSP+JavaBeanstobepossibletopassunimpedednearlyunderallplatforms.Transplantsfromaplatformtootherplatform,JSPandJavaBeansdoesnotevenneedtotranslate,becausetheJavabytecodeisstandardhasnothingtodowiththeplatform.2.5databaseconnectionInJavaconnectsthedatabasethetechnologyistheJDBC,JavaprocedureisconnectedthroughtheJDBCdriverandthedatabase,operationsandsoonexecutioninquiry,extractiondata.SunCorporationhasalsodevelopedJDBC-ODBCbridge,usesthistechnicalJavaproceduretobepossibletovisithastheODBCdriverdatabase,atpresentthemajoritydatabasesystemshavetheODBCdriver,thereforetheJavaprocedurecanvisitsuchasOracle,Sybase,MSSQLServeranddatabasesandsoonMSAccess.Inaddition,throughthedevelopmentmarkingstorehouse,theJSPtechnologymayfurtherexpand.Thethirdpartydevelopmentpersonnelandotherpersonnelmayfoundtheirmarkingstorehouseforthecommonlyusedfunction.ThisenablestheWebpagedevelopmentpersonneltobeabletousethefamiliartoolandtobesimilartomarkingsamecarriesoutthespecificfunctioncomponenttocarryonthework.TheJSPtechnologyveryeasyconformitytomanykindsofapplicationarchitecture,tousetheextanttoolandtheskill,andcanexpandtothesupportenterprisedistributionalapplication.3EclipsefunctionsynopsisMoreandmoreJavadevelopmentpersonnelalreadystartedtheproductivitywhichandthequalityincomeappreciatesEclipseJDTtoprovide.ItwastheJavaeditorprovidesgrammarGaoLiangtodemonstratethattheformatting,thefold,thecontentwereauxiliary,codetemplateandsoonmanyfunctions.Itgrowsunceasinglyavailablerestructuringandthecodegenerationfunctionsetpermitsyouinahigherranktheoperationcode,andautomatedusualcodeintensitydutyandeasywrongduty.Moreover,indevelopsthecodeandusesJDTtocompileandtocarryouttheJUnittestbuilt-insupportcarriesontheunittestingafterthecode,mayuseEclipsethefirst-classJavadebuggerdebuggingwhenthemovementmeetsanyquestion.BesidesJDT,EclipseSDK-themostpopularEdownloading-alsocontainsPlug-inDevelopmentEnvironment(PDE).PDEusedthespecificfunctiontoexpandJDTtoconstructtheEclipseplug-inunit-basedontheEclipseapplicationprocedurebasicconstructionagglomeration.Infact,usesthetoolwhichprovidesbyEclipseitselftobeabletosurmounttheJavadevelopment,mayexpandtheexistingEclipseapplicationprocedure,orevenfoundsthebrand-newapplicationprocedure.Eclipsebyascriptlevelconstitution,containsinmanyfunctionalmodulesortheEclipseterminologyso-called“theplug-inunit”.Theplug-inunitisprovidesallfunctionsintheEclipseapplicationprocedurethemodule.TheycooperatethroughitsAPItopaythefinaloutcometogether.InEclipse,eventhemostfoundationsfunction,forinstancethesearchandthestartinstallmentsplug-inunit,sealsintheplug-inunit.InordertoexpandtheexistingEclipsefunctionorcarryontheconstructioninabove,theplug-inunittheconcreteexpansioncontributionfortheexpansionspotwhichwillexposebyotherplug-inunits.Usually,theplug-inunitconcentratesthespecificregionresponsibility,andgivesthroughoramanyexpansionwayotherresponsibilitydesignationotherplug-inunits.Forexample,aplug-inunitallowsyouparalleltocomparetwodocumentsvisiblythecontents,butitwillnotcarehowtoreadthesedocumentsevenhowtoexplainthesedocumentstructure;Thisisotherplug-inunitswork.Whencomparedwithtwodocuments,thisplug-inunitfirstinspectswhethertohaveanotherplug-inunittobepossibletoexplainthesedocumentstructure.Iffoundone,ittotheplug-inunitinquiryrelatedfileorganizationinformationwhichfound,andusedthisinformationinthecomparisonprocess.MayseethatthemodularconstructionwasEclipsehasprovidedthehugeflexibility,andprovidedonetobepossibletosupportthemassiveapplicationprocedureplatformwhichtheoriginaldesignhasnotexpected.4StructsfunctionsynopsisStrutsisaMVCframe(Framework),usesindevelopingJavafasttheWebapplication.StrutsrealizesthekeypointinC(Controller),Actionwhichandwehavecustom-madeincludingActionServlet/RequestProcessor,wasalsoV(View)providesaseriesofrowstohavecustom-madethelabel(CustomTag).Springisalightvessel(light-weightcontainer),itscoreistheBeanfactory(BeanFactory),withconstructsM(Model)whichweneed.Abovethisfoundation,SpringhasprovidedAOP(Aspect-OrientedProgramming,facestratificationplaneprogramming)realization,providesunderthenon-managementenvironmentwithittodeclareservicesandsoonwaybusiness,security;IsmoreconvenienttoBeanfactoryexpansionApplicationContextwetorealizetheJ2EEapplication;DAO/ORMrealizesfacilitatesustocarryonthedatabasethedevelopment;WebMVCandSpringWebhaveprovidedJavatheWebapplicationframeorcarriesontheintegrationwithotherpopularWebframe.Thatismayabothuse,achievebothowncharacteristiccarriesonsupplementary.Structsisthekindwhich,servletandtheJSPmarkagroupcooperatesmutually,theycomposetheMVC2designswhichmayentrustwithheavyresponsibility.ThisdefinitionexpressedthatStrutsisaframe,butisnotastorehouse,butStrutshasalsocontainedtherichmarkstorehouseandtheindependenceinthisframeworkutilityprogramclass.Clientbrowser(customerbrowser),therequestfoundsaneventfromcustomerbrowserseachHTTP.TheWebvesselwilluseaHTTPresponsetomaketheresponse.Controller(controller),thecontrollerreceivefrombrowsersrequest,anddecidedthatsendsoutwherethisrequest.SpeakingofStruts,thecontrollerisanorderdesignpatternwhichrealizesbyservlet.struts-config.xmldocumentdispositioncontroller.Servicelogic,theservicelogicrenewalmodelscondition,andhelpsthecontrolapplicationproceduretheflow.SpeakingofStruts,thisisthroughtakestheactualservicelogic“thin”thepackingActionkindtocomplete.Model(model)condition,modelexpressionapplicationprocedurecondition.Serviceobjectrenewalapplicationprocedurecondition.ActionFormbeaninconversationlevelorrequestlevelexpressionmodelcondition,butisnotinthelastinglevel.TheJSPdocumentusesJSPtomarkthereadfromtheActionFormbeaninformation.View(view),theviewisaJSPdocument.Anddoesnothavetheflowlogic,doesnothavetheservicelogic,alsodoesnothavethemodelinformation-Onlythenmarks.ThemarkcausesStrutsisdifferentwithotherframes(forexampleVelocity)oneoffactors.JustliketheStrutscontrolleris(eventusuallyisHTTPpost)mapstheeventkindofservlet.youtoexpect-theair-operatedcontrolleruseconfigurationfilestocauseyounottoneedtocarryontothesevaluesthehardcode.Thetimehaschanged,butmethodasbefore.TheActionkind,ActionFormmaintainstheWebapplicationproceduretheconversationcondition.ActionFormisoneabstractclass,mustfoundthiskindofsubclassforeachinputformmodel.WhenIsaidwheninputformmodel,whatreferstotheActionFormexpressionisestablishesorintherenewalgeneralsensedatabytheHTMLform.TheActionkindisservicelogicpacking.AActionkindofuseistransformsHttpServletRequestintotheservicelogic.MustuseAction,pleasefounditssubclassandcoversprocess()themethod.ActionServlet(Command)willuseperform()themethodtheparametrizationkindtotransmitforActionForm.Stilldidnothavetoomanyrepugnantrequest.getParameter()totransfer.Whentheeventprogressestothisstep,theinputformdata(orHTMLformdata)hasbeenwithdrawnfromtherequestclassandshiftstotheActionFormkind.ConsideredthataActionkindofanotherwayistheAdapterdesignpattern.TheActionusewillbe“akindofconnectionwilltransformanotherconnectionwhichwillneedfortheclient.Adapterenablesthekindthejointoperation,ifdoesnothaveAdapter,thenthesekindswillbeunablebecauseoftheincompatibleconnectionthejointoperation.”.InthisexamplesclientisActionServlet,itknowsnothingabouttoourconcreteserviceclassconnection.Therefore,Strutshasprovidedaserviceconnectionwhichitcanunderstand,namelyAction.ThroughexpandsAction,wecauseourserviceconnectionandtheStrutsserviceconnectionmaintaincompatible.5CSSsynopsisTheCSSeditionmethodisthesamewithHTML,mayalsobeanytexteditororthehomepageeditionsoftware,butalsohasusesfortoeditCSSspeciallythesoftware.IfyouwritetheCSSsentenceregardstheexteriorcascadingstylesheet,buttransfersintheHTMLdocument,thenitsextensionsaves.csstobepossible.InitiallythetechnicalpersonnelfoundoutHTML,mainlystressesonthedefinitioncontent,forinstanceexpressedthataparagraph,indicatesthetitle,butexcessivelyhasnotdesignedHTMLthetypesettingandthecontactsurfaceeffect.AlongwiththeInternetrapiddevelopment,HTMLiswidelyapplied,thesurferpeoplehopedcertainlythatthehomepagemakesattractive,thereforetheHTMLtypesettingandthecontactsurfaceeffectslimitationexposesdaybyday.Inordertosolvethisproblem,thepeoplealsotookmanytortuouspaths,hasusedsomenotgoodmethod,forinstanceincreasesmanyattributeresultstoHTMLbecomesthecodeveryextremelyfat,turnsthepicturethetext,excessivelymanycomesthetypesettingusingTable,expressesthewhitespacewiththeblankpictureandsoon.AppearsuntilCSS.CSSmaybeahomepagedesignbreakthrough,ithassolvedthehomepagecontactsurfacetypesettingdifficultproblem.MaysuchsaythatHTMLTagismainlydefinesthehomepagecontent(Content),butCSSdecidedhowthesehomepagecontentdoesdemonstrate(Layout).TheCSSEnglishisCascadingStyleSheets,Chinesemaytranslatethetandemcascadingstylesheet.CSSmaydivideintothreekindsaccordingtoitsposition:Ininlaysthestyle(InlineStyle),internalcascadingstylesheet(InternalStyleSheet),exteriorcascadingstylesheet(ExternalStyleSheet).6HTMLfunctionsynopsisHyperTextMarkuptheLanguagehypertextmarklanguageisonekindusesfortomanufacturethehypertextdocumentsthesimplemarklanguage.ThehypertextdocumentswhichcompileswithHTMLarecalledtheHTMLdocuments,itcantheindependenceineachkindofoperatingsystemplatform(forexampleUNIX,WINDOWSandsoon).HTMLhasservedassince1990onWorldWideWebtheinformationtoexpressthelanguage,usesindescribingtheHomepageformdesignanditandonWWWtheotherHomepagelinkedinformation.TheHTMLdocuments(i.e.theHomepagesourcedocument)wasonehaslaidasidethemarkASCIItextdocument,usuallyithad.htmlorthe.htmdocumentextension.ProducesHTMLdocumentsmainlytohavethefollowingthreeways:1.themanualdirectcompilation(e.g.ASCIItexteditorwhichorotherHTMLeditiontoollikeswithyou).2.willhaveotherformdocumentsthroughcertainformatconversiontool(forexampletheWORDdocuments)totransformtheHTMLdocuments.3.bytheWebserver(orsaidthattheHTTPserver)oneonlythenreal-timedynamicproduces.theHTMLlanguageisthroughuseseachkindofmark(tags)tomarkthedocumentsthestructureaswellasmarkstheultrachain(Hyperlink)theinformation.AlthoughtheHTMLlanguagedescribedthedocumentsstructureform,buthowcantdefinethedocumentsinformationtopreciselydemonstrateandarrange,butisonlysuggestedhowtheWebbrowser(forexampleMosiac,Netscapeandsoon)shoulddemonstrateandarrangetheseinformation,isdecidedfinallyinfrontofusersdemonstrationresultbytheWebbrowsersdemonstrationstyleandtothemarkexplanatoryability.Whyistheidenticaldocumentstheeffectwhichdemonstratedinthedifferentbrowsermeetsisdissimilar.AtpresenttheHTMLlanguageseditionis2.0,itisbasedonSGML(StandardGeneralizedMarkupLanguage,standardsetsatsignlanguagegenerally,assoonasisappliesmechanicallydescribesdigitizeddocumentsstructureandmanagesitscontentcomplexstandard)asubsettoevolvecomes.AlthoughinnexteditionsstandardHTML3.0(isalsocalledHTML+)todrawup,butsomethepartialexperimentalnaturedraftstandardwidelyhasbeenused,themostlyoutstandingWebbrowser(forexampleNetscapeandsoon)canexplainintheHTML3.0partnewmark,thereforeintroducedinthischaptersomeHTML3.0newmarkhasbeenacceptedbythemostbrowsers.7JsscriptlanguagesynopsisJSisjavascrip,JavascriptisonekindthescriptlanguagewhichcomesbytheNetscapeLiveScriptdevelopment,themainpurposeistosolvetheserverterminallanguage,forinstancePerl,carry-overspeedquestion.Atthattimeservedtheendtoneedtocarryontheconfirmationtothedata,becausethenetworkspeedwasquiteslow,onlythen28.8kbps,theconfirmationstepwastestimeweretoomany.ThereforeNetscapebrowserNavigatorhasjoinedJavascript,hasprovidedthedataconfirmationbasicfunction.TheJavaScriptofficialnameis“ECMAScript”.ThisstandardbyECMAorganizationdevelopmentandmaintenance.ECMA-262istheofficialJavaScriptstandard.ThisstandardbasedonJavaScript(Netscape)andJScript(Microsoft).Netscape(Navigator2.0)BrendanEichhasinventedthislanguage,startedfrom1996,alreadyappearedinallNetscapeandintheMicrosoftbrowser.TheECMA-262developmentbeganin1996,in1997July,theECMAgeneralmeetinghasaccepteditsfirstedition.Scriptscriptusesonespecificdescriptivelanguage,restsoncertainformcompilationtobepossibletheexecutiondocument,isalsocalledasgreatorthebatchrundocument.Thescriptusuallymaytransfertemporarilybytheapplicationprocedureandcarryout.Eachkindofscriptpresentwidelyisappliedinthehomepagedesign,becausethescriptnotonlymayreducethehomepagethescaleandraisesthehomepagebrowsingspeed,moreovermayenrichthehomepageperformance,likeanimation,soundandsoon.Citesamostcommonexample,whenweclickinthehomepagetheE-mailaddresscantransferOutlookExpressortheFoxmailthiskindofmailsoftwareautomatically,isrealizesthroughthescriptfunction.Alsobecauseofscriptthesecharacteristics,thehumanwhoharborsulteriormotivesbysomeareoftenusing.Forexamplejoinssomedestructioncomputersystemsorderinthescript,likethisworksastheuserbrowsinghomepage,oncetransfersthiskindofscript,willthencausetheuserthesystemtocomeundertheattack.Thereforetheusershouldactaccordingtovisitshomepagethetrustdegreeselectivesecurityrank,speciallyregardingtheseitselfcontentontheillegalhomepage,donotpermittheusescripteasily.Through“thesafeestablishment”thedialogbox,thechoice“thescript”underoptioneachkindofestablishmentmaywitheaserealizetoscriptbeingforbidandbeginsusing.Presentsscriptlanguageisquitemany,scriptlanguageexecutiongenerallyonlywithconcreteexplanationactuatorrelated,solongasthereforeonthesystemhasthecorrespondinglanguageinterpretertobepossibletoachievethecrossplatform.Script(Script),isincludesorderandsoonbindandaliassets,youmaysavethissetareanindependentdocumenttheninthetimewhichneedscarriesout,likethismayfacilitateyouintheCSuse.Thescriptmaysaveforthesuffixnamed.cfgdocumentplacesunderthecstrikefolder,whenexecutionincontrolbenchinput:exec(scriptfilename).cfgthen.Forinstancesavesascriptisthebuys.cfgdocument,inputsinthecontrolbench:execbuys.cfgmayrealizethefunctionwhichweneed.Mustrealizeanorder,solongasisgoodthisprocessdefinition(alias),andassignsakeypositionforthisorder,solongaslateraccordingtowillassignthegoodkeyposition,mayrealizethisprocess.Allscriptsarerealizethroughthismethod.中文翻译JSP及其WEB技术1JSP简介JSP(JavaServerPag
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 书法大师面试实战题库
- 2025年生鲜新零售供应链优化与冷链物流冷链物流园区规划与建设研究报告
- 2025年交通设备制造业数字化转型中的智能制造与市场拓展研究报告
- 7天抖音快速涨粉
- 怎样提升孩子应变能力
- 下沉市场消费金融风险防范与合规经营研究报告:2025年政策解读
- 2025年冶金矿山阀门行业当前竞争格局与未来发展趋势分析报告
- 2025年建筑施工升降机行业当前发展趋势与投资机遇洞察报告
- 个人养老金制度对文化旅游产业投资机遇与风险分析报告
- 2025年粉末冶金行业当前发展现状及增长策略研究报告
- (高清版)DZT 0275.5-2015 岩矿鉴定技术规范 第5部分:矿石光片鉴定
- 《养老护理员》-课件:协助老年人洗浴及清洁会阴部
- 2024年公安局招考警务辅助人员考试题库附答案
- 《幕墙工程UHPC单元体幕墙施工专项方案》
- 高铁保洁管理制度
- 风电项目地质灾害专项应急预案
- 《广联达培训教程》课件
- 减少门诊投诉PDCA课件
- 职业暴露与防护41p
- 医疗废物处理登记表
- 左手流程-右手人才-章义伍
评论
0/150
提交评论