资源描述:
《jsp技术外文文献》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、JSPandWEBtechnologyKathySierra,BertBates1JSPIntroductionJSP(JavaServerPages)isaJava-basedscriptingtechnology・IsadvocatedbySunMicrosystemsInc.,togetherwithanumberofcompaniesinvolvedintheestablishmentofadynamicwebpagetechnologystandards・JSPtechnologyissomewhatsimil
2、artoASPtechnology,ItisatraditionalHTMLpagefile(*•htm,*・html)toinsertJavaprogramsegment(Scriptlet)andJSPtag(tag),ToformtheJSPfile(*jsp)・WebdevelopmentwithJSPisacross-platformapplicationsthatcanrununderLinux,butalsoinotheroperatingsystems.IntheJSPofthemanyadvantage
3、s,oneofwhichisthatitwillbeHTMLencodedWebpagefromthebusinesslogicseparatedeffectively.JSPaccesswithreusablecomponents,suchasServlet,JavaBeanandJava-basedWebapplications・JSPalsosupportsdirectlyintheWebpageembeddedJavacode・JSPcanbeusedtwowaystoaccessdocuments:JSPdoc
4、umentssentbythebrowserrequest,therequestsenttotheServlet・JSPtechnologyusesJavaprogramminglanguage,XML-typetagsandscriptlets,tohaveapackagedealwiththelogicofdynamicpages.Pagetagsandscriptletscanalsoexistintheserveraccesstotheresourcesoftheapplicationlogic.JSPlogic
5、andWebpagedesignanddisplayisolatedandsupportreusablecomponent-baseddesign,Web-basedapplicationsmorequicklyandeasilydeveloped・TheWebserverwhenmeetsvisitstheJSPhomepagetherequest,firstcarriesoutsegment,willthencarryouttheresultcodetoreturntogetherwithJSPinthedocume
6、ntHTMLforthecustomer・TheinsertionJavasegmentmayoperatethedatabase,againthedirectionalhomepageandsoon,realizesthefunctionwhichtheestablishmentdynamichomepageneeds.JSPandJavaServletarethesame,isintheserverendexecution,usuallyreturnstothisclientsideisaHTMLtext,there
7、foreclientside,solongashasthebrowsertobeabletoglanceover.TheJSPpageiscomposedoftheHTMLcodeandtheinsertingJavacode.TheserverinthepagebytheclientsidewasrequestedthatlaterwillcarryonprocessingtotheseJavacode,willthenproducetheHTMLpagewillreturngivestheclientsidetheb
8、rowser.JavaServletistheJSPtechnologybase,moreoverthelarge-scaleWebapplicationprocedure'sdevelopmentneedsJavaServletandtheJSPcoordinationcancomplete.JSPhadtheJa