《外文文献JSP中英文翻译.pdf》由会员分享,可在线阅读,更多相关《外文文献JSP中英文翻译.pdf(27页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、大连交通大学 2011 届本科生毕业设计(论文)外文翻译THE TECHNIQUE DEVELOPMENT HISTORY OF JSPBy:By:Kathy Sierra and Bert BatesSource:Source:Servlet&JSPThe Java Server Pages(JSP)is a kind of according to web of the script plait distancetechnique,similar carries the script language of Java in the server of the Netscape compan
2、yof server-side JavaScript(SSJS)and the Active Server Pages(ASP)of the Microsoft。JSPcompares the SSJS and ASP to have better can expand sex,and it is no more exclusive thanany factory or some one particular server of Web.Though the norm of JSP is to be draw up bythe Sun company of,any factory can ca
3、rry out the JSP on own system.The After Sun release the JSP(the Java Server Pages)formally,the this kind of newWeb application development technique very quickly caused the peoples concern。JSPprovided a special development environment for the Web application that establishes the highdynamic state。Ac
4、cording to the Sun parlance,the JSP can adapt to include the ApacheWebServer,IIS4.0 on the market at inside of 85%server product.This chapter will introduce the related knowledge of JSP and Databases,and JavaBeanrelated contents,is all certainly rougher introduction among them basic contents,say per
5、hapsto is a Guide only,if the reader needs the more detailed information,pleasing the book ofconsult the homologous JSP.1.1 GENERALIZEThe JSP(Java Server Pages)is from the company of Sun Microsystems initiate,the manycompanies the participate to the build up the together of the a kind the of dynamic
6、 the stateweb the page technique standard,the it have the it in the construction the of the dynamicstate the web page the strong but the do not the especially of the function。JSP and thetechnique of ASP of the Microsoft is very alike.Both all provide the ability that mixes with acertain procedure co
7、de and is explain by the language engine to carry out the procedure codein the code of HTML。Underneath we are simple of carry on the introduction to it.JSP pages are translated into servlets。So,fundamentally,any task JSP pages canperform could also be accomplished by servlets。However,this underlying
8、 equivalencedoes not mean that servlets and JSP pages are equally appropriate in all scenarios.The issue isnot the power of the technology,it is the convenience,productivity,and maintainability ofone or the other。After all,anything you can do on a particular computer platform in theJava programming
9、language you could also do in assembly language。But it still matterswhich you choose.1大连交通大学 2011 届本科生毕业设计(论文)外文翻译JSP provides the following benefits over servlets alone:It is easier to write and maintain the HTML.Your static code is ordinary HTML:noextra backslashes,no double quotes,and no lurking
10、Java syntax.You can use standard Web-site development tools。Even HTML tools that knownothing about JSP can be used because they simply ignore the JSP tags.You can divide up your development team。The Java programmers can work on thedynamic code。The Web developers can concentrate on the presentation l
11、ayer.On largeprojects,this division is very important。Depending on the size of your team and thecomplexity of your project,you can enforce a weaker or stronger separation between the staticHTML and the dynamic content.Now,this discussion is not to say that you should stop using servlets and use only
12、 JSPinstead。By no means.Almost all projects will use both.For some requests in your project,you will use servlets。For others,you will use JSP.For still others,you will combine themwith the MVC architecture。You want the appropriate tool for the job,and servlets,bythemselves,do not complete your toolk
13、it。1.2 SOURCE OF JSPThe technique of JSP of the company of Sun,making the page of Web develop thepersonnel can use the HTML perhaps marking of XML to design to turn the end page withformat.Use the perhaps small script future life of marking of JSP becomes the dynamic stateon the page contents。(the c
14、ontents changes according to the claim of)The Java Servlet is a technical foundation of JSP,and the large Web applies thedevelopment of the procedure to need the Java Servlet to match with with the JSP and thencan complete,this name of Servlet comes from the Applet,the local translation method ofnow
15、 is a lot of,this book in order not to misconstruction,decide the direct adoption Servletbut dont do any translation,if reader would like to,can call it as”small service procedure”。The Servlet is similar to traditional CGI,ISAPI,NSAPI etc.Web procedure development thefunction of the tool in fact,at
16、use the Java Servlet hereafter,the customer need not useagain the lowly method of CGI of efficiency,also need not use only the ability come to bornpage of Web of dynamic state in the method of API that a certain fixed Web server terracecirculate.Many servers of Web all support the Servlet,even not s
17、upport the Servlet server ofWeb directly and can also pass the additional applied server and the mold pieces to supportthe Servlet.Receive benefit in the characteristic of the Java crossplatform,the Servlet isalso a terrace irrelevant,actually,as long as match the norm of Java Servlet,the Servlet is
18、complete to have nothing to do with terrace and is to have nothing to do with server of Web.Because the Java Servlet is internal to provide the service by the line distance,need not start a2大连交通大学 2011 届本科生毕业设计(论文)外文翻译progress to the each claimses,and make use of the multi threading mechanism can at
19、 thesame time for several claim service,therefore the efficiency of Java Servlet is very high.But the Java Servlet also is not to has no weakness,similar to traditional CGI,ISAPI,the NSAPI method,the Java Servlet is to make use of to output the HTML languagesentence to carry out the dynamic state we
20、b page of,if develop the whole website with theJava Servlet,the integration process of the dynamic state part and the static state page is anevil-foreboding dream simply。For solving this kind of weakness of the Java Servlet,theSUN released the JSP.A number of years ago,Marty was invited to attend a
21、small 20person industryroundtable discussion on software technology.Sitting in the seat next to Marty was JamesGosling,inventor of the Java programming language。Sitting several seats away was ahigh-level manager from a very large software company in Redmond,Washington。Duringthe discussion,the modera
22、tor brought up the subject of Jini,which at that time was a newJava technology.The moderator asked the manager what he thought of it,and the managerresponded that it was too early to tell,but that it seemed to be an excellent idea。He went onto say that they would keep an eye on it,and if it seemed t
23、o be catching on,they would followhis companys usual”embrace and extend”strategy。At this point,Gosling lightheartedlyinterjected”You mean disgrace and distend.Now,the grievance that Gosling was airing was that he felt that this company wouldtake technology from other companies and suborn it for thei
24、r own purposes。But guesswhat?The shoe is on the other foot here.The Java community did not invent the idea ofdesigning pages as a mixture of static HTML and dynamic code marked with special tags。For example,Cold Fusion did it years earlier。Even ASP(a product from the very softwarecompany of the afor
25、ementioned manager)popularized this approach before JSP came alongand decided to jump on the bandwagon.In fact,JSP not only adopted the general idea,iteven used many of the same special tags as ASP did.The JSP is an establishment at the model of Java servlets on of the expression layertechnique,it m
26、akes the plait write the HTML to become more simple.Be like the SSJS,italso allows you carry the static state HTML contents and servers the script mix to put togetherthe born dynamic state exportation。JSP the script language that the Java is the tacitapproval,however,be like the ASP and can use othe
27、r languages(such as JavaScript andVBScript),the norm of JSP also allows to use other languages.1。3JSP CHARACTERISTICSIs a service according to the script language in some one language of the staturessystem this kind of discuss,the JSP should be see make is a kind of script language。3大连交通大学 2011 届本科生
28、毕业设计(论文)外文翻译However,be a kind of script language,the JSP seemed to be too strong again,almost canuse all Javas in the JSP。Be a kind of according to text originally of,take manifestation as the centraldevelopment technique,the JSP provided all advantages of the Java Servlet,and,whencombine with a Jav
29、aBeans together,providing a kind of make contents and manifestation thatsimple way that logic separate.Separate the contents and advantage of logical manifestationsis,the personnel who renews the page external appearance need not know the code of Java,and renew the JavaBeans personnel also need not
30、be design the web page of expert in hand,can use to take the page of JavaBeans JSP to define the template of Web,to build up a fromhave the alike external appearance of the website that page constitute.JavaBeans completesthe data to provide,having no code of Java in the template thus,this means that
31、 thesetemplates can be written the personnel by a HTML plait to support.Certainly,can also makeuse of the Java Servlet to control the logic of the website,adjust through the Java Servlet touse the way of the document of JSP to separate website of logic and contents。Generally speaking,in actual engin
32、e of JSP,the page of JSP is the edit and translatetype while carry out,not explain the type of.Explain the dynamic state web pagedevelopment tool of the type,such as ASP,PHP3 etc.,because speed etc。reason,havealready cant satisfy current the large electronic commerce needs appliedly,traditionaldevel
33、opment techniques are all at to edit and translate the executive way change,such as theASP ASP+;PHP3 PHP4.In the JSP norm book,did not request the procedure in the JSP code part(be called theScriptlet)and must write with the Java definitely。Actually,have some engines of JSP areadoptive other script
34、languages such as the EMAC Script,etc。,but actually this a fewscript languages also are to set up on the Java,edit and translate for the Servlet to carry outof。Write according to the norm of JSP,have no Scriptlet of relation with Java also is can of,however,mainly lie in the ability and JavaBeans,th
35、e Enterprise JavaBeanses because of theJSP strong function to work together,so even is the Scriptlet part not to use the Java,editand translate of performance code also should is related with Java.1.4JSP MECHANISMTo comprehend the JSP how unite the technical advantage that above various speak of,com
36、e to carry out various result ea sily,the customer must understand the differentiation of”the module develops for the web page of the center”and”the page develops for the web pageof the center”first。The SSJS and ASP are all in several year ago to release,the network of that time is stillvery young,n
37、o one knows to still have in addition to making all business,datas and the4大连交通大学 2011 届本科生毕业设计(论文)外文翻译expression logic enter the original web page entirely heap what better solve the method。Thiskind of model that take page as the center studies and gets the very fast development easily.However,alon
38、g with change of time,the people know that this kind of method is unwell inset up large,the Web that can upgrade applies the procedure。The expression logic write inthe script environment was lock in the page,only passing to shear to slice and glue to stickthen can drive heavy use.Express the logic t
39、o usually mix together with business and the datalogics,when this makes be the procedure member to try to change an external appearancethat applies the procedure but do not want to break with its llied business logic,apply theprocedure of maintenance be like to walk the similar difficulty on the egg
40、shell。In fact in thebusiness enterprise,heavy use the application of the module already through very mature,noone would like to rewrite those logics for their applied procedure.HTML and sketch thedesigner handed over to the implement work of their design the Web plait the one who write,make they hav
41、e to double work-Usually is the handicraft plait to write,because have no fittool and can carry the script and the HTML contents knot to the server to put together.Chienbut speech,apply the complexity of the procedure along with the Web to promotecontinuously,the development method that take page as
42、 the center limits sex to become to getup obviously。At the same time,the people alwaysat lookfor thebetter methodof builduptheWeb application procedure,the modulespreads incustomers machine/server therealm。JavaBeans and ActiveX were published the company to expand to apply theprocedure developer for
43、 Java and Windows to use to come to develop the complicatedprocedure quickly by”the fast application procedure development(RAD)tool.Thesetechniques make the expert in the some realm be able to write the module for theperpendicular application plait in the skill area,but the developer can go fetch th
44、e usagedirectly but need not control the expertise of this realm.Be a kind of take module as the central development terrace,the JSP appeared.It withthe JavaBeans and Enterprise JavaBeans(EJB)module includes the model of the businessand the data logic for foundation,provide a great deal of label and
45、 a script terraces to use tocome to show in the HTML page from the contents of JavaBeans creation or send a present inreturn.Because of the property that regards the module as the center of the JSP,it can driveJava and not the developer of Java uses equally.Not the developer of Java can pass the JSP
46、label(Tags)to use the JavaBeans that the deluxe developer of Java establish。The developerof Java not only can establish and use the JavaBeans,but also can use the language of Java tocome to control more accurately in the JSP page according to the expression logic of the firstfloor JavaBeans。5大连交通大学
47、2011 届本科生毕业设计(论文)外文翻译See now how JSP is handle claim of HTTP.In basic claim model,a claim directly wassend to JSP page in。The code of JSP controls to carry on hour of the logic processing andmodule of JavaBeanses hand over with each other,and the manifestation result in dynamicstate bornly,mixing wi
48、th the HTML page of the static state HTML code。The Beans can beJavaBeans or module of EJBs。Moreover,the more complicated claim model can see makefrom is request other JSP pages of the page call sign or Java Servlets.The engine of JSP wants to chase the code of Java that the label of JSP,code of Java
49、 inthe JSP page even all converts into the big piece together with the static state HTML contentsactually。These codes piece was organized the Java Servlet that customer can not see to go toby the engine of JSP,then the Servlet edits and translate them automatically byte code of Java.Thus,the visitan
50、t that is the website requests a JSP page,under the condition of it is notknowing,an already born,the Servlet actual full general that prepared to edit and translatecompletes all works,very concealment but again and efficiently.The Servlet is to edit andtranslate of,so the code of JSP in the web pag