JSP及其WEB技术中英文对照外文翻译文献.docx
《JSP及其WEB技术中英文对照外文翻译文献.docx》由会员分享,可在线阅读,更多相关《JSP及其WEB技术中英文对照外文翻译文献.docx(12页珍藏版)》请在冰豆网上搜索。
JSP及其WEB技术中英文对照外文翻译文献
中英文对照外文翻译文献
(文档含英文原文和中文翻译)
JSPandWEBtechnolog
1JSPIntroduction
JSP(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-scaleWebapplicationprocedure'sdevelopmentneedsJavaServletandtheJSPcoordinationcancomplete.JSPhadtheJavatechnologysimplyeasytouse,completeobject-oriented,hadtheplatformindependency,andsafereliable,mainlyfacedInternet'sallcharacteristics.
2JSPcomputingtechnique
Tocarryonthedynamicwebsiteconvenientlyfastthedevelopment,JSPhasmadetheimprovementinthefollowingseveralaspects,causesittobecomebuildsthecrossplatformfastthedynamicwebsitefirstchoiceplan.
2.1carriesonthecontentproductionandthedemonstrationseparates
WiththeJSPtechnology,theWebpagedevelopmentpersonnelmayuseHTMLortheXMLmarkingdesignandtheformattedfinalpage,andusestheJSPmarkingorthetootsyproducesonpage'sdynamiccontentoriginally.Productioncontent'slogicissealedinmarksandintheJavaBeansmodule,andtiesupinthescript,allscriptsinserverendmovement.BecausecorelogicissealedinmarksandinJavaBeans,thereforetheWebadministrativepersonnelsandthepagedesigner,caneditandusetheJSPpage,butdoesnotaffectthecontenttheproduction.Intheserverend,theJSPengineexplainedthattheJSPmarkingandthescript,producethecontentwhichrequested,and(orXML)page'sformtransmitstheresultbyHTMLthebrowser.Thisbotharehelpfulintheauthorprotectsowncode,andcanguaranteeanybasedontheHTMLWebbrowser'scompleteusability.
2.2mayentrustwithheavyresponsibilitythemodule
TheoverwhelmingmajorityJSPpagereliesonmayentrustwithheavyresponsibility,thecrossplatformmodule(JavaBeansorEnterprisetheJavaBeansmodule)carriesoutcomplexprocessingwhichtheapplicationprocedurerequests.Thedevelopmentpersonnelcanshareandexchangetheexecutionordinaryoperationthemodule,orcausesthesemodulesusesformoreusersandthecustomerassociation.Hasacceleratedtheoveralldevelopmentprocessbasedonmodule'smethod,andcauseseachkindoforganizationobtainsbalancedintheirexistingskillandintheoptimizedresultdevelopmentendeavor.
2.3usesmarking
TheWebpagedevelopmentpersonnelwillnotbethefamiliarscriptlanguageprogrammers.TheJSPtechnologyhassealedmanyfunctions,thesefunctionsareeasytouse,markingtocarryonthedynamiccontentproductionwithJSPintherelatedXMLtoneed.ThestandardJSPmarkingcanvisitandtheinstantiationJavaBeansmodule,theestablishmentortheretrievalmoduleattribute,downloadsApplet,aswellastheexecutiondifficultywithcodesandthetime-consumingfunctionwithothermethods.
2.4adaptstheplatform
NearlyallplatformssupportJava,JSP+JavaBeanstobepossibletopassunimpedednearlyunderallplatforms.Transplantsfromaplatformtootherplatform,JSPandJavaBeansdoesnotevenneedtotranslate,becausetheJavabytecodeisstandardhasnothingtodowiththeplatform.
2.5databaseconnection
InJavaconnectsthedatabasethetechnologyistheJDBC,JavaprocedureisconnectedthroughtheJDBCdriverandthedatabase,operationsandsoonexecutioninquiry,extractiondata.SunCorporationhasalsodevelopedJDBC-ODBCbridge,usesthistechnicalJavaproceduretobepossibletovisithastheODBCdriverdatabase,atpresentthemajoritydatabasesystemshavetheODBCdriver,thereforetheJavaprocedurecanvisitsuchasOracle,Sybase,MSSQLServeranddatabasesandsoonMSAccess.Inaddition,throughthedevelopmentmarkingstorehouse,theJSPtechnologymayfurtherexpand.Thethirdpartydevelopmentpersonnelandotherpersonnelmayfoundtheirmarkingstorehouseforthecommonlyusedfunction.ThisenablestheWebpagedevelopmentpersonneltobeabletousethefamiliartoolandtobesimilartomarkingsamecarriesoutthespecificfunctioncomponenttocarryonthework.TheJSPtechnologyveryeasyconformitytomanykindsofapplicationarchitecture,tousetheextanttoolandtheskill,andcanexpandtothesupportenterprisedistributionalapplication.
3Eclipsefunctionsynopsis
MoreandmoreJavadevelopmentpersonnelalreadystartedtheproductivitywhichandthequalityincomeappreciatesEclipseJDTtoprovide.ItwastheJavaeditorprovidesgrammarGaoLiangtodemonstratethattheformatting,thefold,thecontentwereauxiliary,codetemplateandsoonmanyfunctions.Itgrowsunceasinglyavailablerestructuringandthecodegenerationfunctionsetpermitsyouinahigherranktheoperationcode,andautomatedusualcodeintensitydutyandeasywrongduty.Moreover,indevelopsthecodeandusesJDTtocompileandtocarryouttheJUnittestbuilt-insupportcarriesontheunittestingafterthecode,mayuseEclipsethefirst-classJavadebuggerdebuggingwhenthemovementmeetsanyquestion.BesidesJDT,EclipseSDK-themostpopularEclipse.orgdownloading-alsocontainsPlug-inDevelopmentEnvironment(PDE).PDEusedthespecificfunctiontoexpandJDTtoconstructtheEclipseplug-inunit-basedontheEclipseapplicationprocedurebasicconstructionagglomeration.Infact,usesthetoolwhichprovidesbyEclipseitselftobeabletosurmounttheJavadevelopment,mayexpandtheexistingEclipseapplicationprocedure,orevenfoundsthebrand-newapplicationprocedure.
Eclipsebyascriptlevelconstitution,containsinmanyfunctionalmodulesortheEclipseterminologyso-called“theplug-inunit”.Theplug-inunitisprovidesallfunctionsintheEclipseapplicationprocedurethemodule.TheycooperatethroughitsAPItopaythefinaloutcometogether.InEclipse,eventhemostfoundation'sfunction,forinstancethesearchandthestartinstallment'splug-inunit,sealsintheplug-inunit.InordertoexpandtheexistingEclipsefunctionorcarryontheconstructioninabove,theplug-inunittheconcreteexpansioncontributionfortheexpansionspotwhichwillexposebyotherplug-inunits.Usually,theplug-inunitconcentratesthespecificregionresponsibility,andgivesthroughoramanyexpansionwayotherresponsibilitydesignationotherplug-inunits.Forexample,aplug-inunitallowsyouparalleltocomparetwodocumentsvisiblythecontents,butitwillnotcarehowtoreadthesedocumentsevenhowtoexplainthesedocumentstructure;Thisisotherplug-inunit'swork.Whencomparedwithtwodocuments,thisplug-inunitfirstinspectswhethertohaveanotherplug-inunittobepossibletoexplainthesedocumentstructure.Iffoundone,ittotheplug-inunitinquiryrelatedfileorganizationinformationwhichfound,andusedthisinformationinthecomparisonprocess.
MayseethatthemodularconstructionwasEclipsehasprovidedthehugeflexibility,andprovidedonetobepossibletosupportthemassiveapplicationprocedureplatformwhichtheoriginaldesignhasnotexpected.
4Structsfunctionsynopsis
StrutsisaMVCframe(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;IsmoreconvenienttoBeanfactoryexpansionApplicationContextwetorealizetheJ2