外文翻译JSP及其WEB技术.docx
- 文档编号:10481530
- 上传时间:2023-02-13
- 格式:DOCX
- 页数:17
- 大小:30.32KB
外文翻译JSP及其WEB技术.docx
《外文翻译JSP及其WEB技术.docx》由会员分享,可在线阅读,更多相关《外文翻译JSP及其WEB技术.docx(17页珍藏版)》请在冰豆网上搜索。
外文翻译JSP及其WEB技术
外文翻译原文及译文
学院
计算机学院
专业
计算机科学与技术
班级
8401010x
学号
20080401010xx
姓名
指导教师
负责教师
沈阳航空航天大学
2012年6月
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;Is
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文 翻译 JSP 及其 WEB 技术