




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、外文原文the technique development history of jspwriter: bluce rakelfrom: /zh-cn/magazine/cc163420.aspxthe java server pages( jsp) is a kind of according to web of the script plait distance technique, similar carries the script language of java in the server of the netscape compan
2、y of server- side javascript( ssjs) and the active server pages( asp) of the microsoft.jsp compares the ssjs and asp to have better can expand sex, and it is no more exclusive than any factory or some one particular server of web. though the norm of jsp is to be draw up by the sun company of, any fa
3、ctory can carry out the jsp on own system. the after sun release the jsp( the java server pages) formally, the this kind of new web application development technique very quickly caused the peoples concern.jsp provided a special development environment for the web application that establishes the hi
4、gh dynamic state. according to the sun parlance, the jsp can adapt to include the apache webserver, iis4.0 on the market at inside of 85% server product.this chapter will introduce the related knowledge of jsp and databases, and javabean related contents, is all certainly rougher introduction among
5、them basic contents, say perhaps to is a guide only, if the reader needs the more detailed information, pleasing the book of consult the homologous jsp.a. generalizethe jsp(java server pages) is from the company of sun microsystems initiate, the many companies the participate to the build up the tog
6、ether of the a kind the of dynamic the state web the page technique standard, the it have the it in the construction the of the dynamic state the web page the strong but the do not the especially of the function.jsp and the technique of asp of the microsoft is very alike. both all provide the abilit
7、y that mixs with a certain procedure code and is explain by the language engine to carry out the procedure code in the code of html. underneath we are simple of carry on the introduction to it.c. jsp characteristicsis a service according to the script language in some one language of the statures sy
8、stem this kind of discuss, the jsp should be see make is a kind of script language. however, be a kind of script language, the jsp seemed to be too strong again, almost can use all javas in the jsp.be a kind of according to text originally of, take manifestation as the central development technique,
9、 the jsp provided all advantages of the java servlet, and, when combine with a javabeans together, providing a kind of make contents and manifestation that simple way that logic separate. separate the contents and advantage of logical manifestations is, the personnel who renews the page external app
10、earance need not know the code of java, and renew the javabeans personnel also need not 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 from have the alike external appearance of the website that page constitute. javabe
11、ans completes the data to provide, having no code of java in the template thus, this means that these templates can be written the personnel by a html plait to support. certainly, can also make use of the java servlet to control the logic of the website, adjust through the java servlet to use the wa
12、y of the document of jsp to separate website of logic and contentses.generally speaking, in actual engine of jsp, the page of jsp is the edit and translate type while carry out, not explain the type of. explain the dynamic state web page development tool of the type, such as asp, php3 etc., because
13、speed etc. reason, have already cant satisfy current the large electronic commerce needs appliedly, traditional development techniques are all at to edit and translate the executive way change, such as the asp asp+; php3 php4.in the jsp norm book, did not request the procedure in the jsp code part(
14、be called the scriptlet) and must write with the java definitely. actually, have some engines of jsp are adoptive other script languageses, such as the emac- script, webl etc., but actually this a few script languages also are to set up on the java, edit and translate for the servlet to carry out of
15、. 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, the enterprise javabeanses because of the jsp strong function to work together, so even is the scriptlet part not to use the java, edit and translate of per
16、formance code also should is related with java.c. jsp mechanismto comprehend the jsp how unite the technical advantage that above various speak of, come to carry out various result easily, the customer must understand the differentiation of the module develops for the web page of the center and the
17、page develops for the web page of the center first. the ssjs and aspses are all in several year agos to release, the network of that time is still very young, no one knows to still have in addition to making all business, datas and the expression logic enter the original web page entirely heap what
18、better solve the method. this kind of model that take page as the center studies and gets the very fast development easily. however, along with change of time, the people know that this kind of method is unwell in set up large, the web that can upgrade applies the procedure. the expression logic wri
19、te in the script environment was lock in the page, only passing to shear to slice and glue to stick then can drive heavy use. express the logic to usually mix together with business and the data logics, when this makes be the procedure member to try to change an external appearance that applies the
20、procedure but do not want to break with its llied business logic, apply the procedure of maintenance be like to walk the similar difficulty on the eggshell. in fact in the business enterprise, heavy use the application of the module already through very mature, no one would like to rewrite those log
21、ics for their applied procedure.html and sketch the designer handed over to the implement work of their design the web plait the one who write, make they have to double work- usually is the handicraft plait to write, because have no fit tool and can carry the script and the html contentses knot to t
22、he server to put together. chien but speech, apply the complexity of the procedure along with the web to promote continuously, the development method that take page as the center limits sex to become to get up obviously. at the same time, the people always at look for the better method of build up t
23、he web application procedure, the module spreads in customers machine/ server the realm. javabeans and activex were published the company to expand to apply the procedure developer for java and windows to use to come to develop the complicated procedure quickly by the fast application procedure deve
24、lopment ( rad) tool. these techniques make the expert in the some realm be able to write the module for the perpendicular application plait in the skill area, but the developer can go fetch the usage directly but need not control the expertise of this realm.be a kind of take module as the central de
25、velopment terrace, the jsp appeared. it with the javabeans and enterprise javabeans( ejb) module includes the model of the business and the data logic for foundation, provide a great deal of label and a script terraces to use to come to show in the html page from the contents of javabeans creation o
26、r send a present in return. because of the property that regards the module as the center of the jsp, it can drive java and not the developer of java uses equally. not the developer of java can pass the jsp label( tags) to use the javabeans that the deluxe developer of java establish. the developer
27、of java not only can establish and use the javabeans, but also can use the language of java to come to control more accurately in the jsp page according to the expression logic of the first floor javabeans. see now how jsp is handle claim of http. in basic claim model, a claim directly was send to j
28、sp page in. the code of jsp controls to carry on hour of the logic processing and module of javabeanses hand over with each other, and the manifestation result in dynamic state bornly, mixing with the html page of the static state html code. the beans can be javabeans or module of ejbs. moreover, th
29、e more complicated claim model can see make from 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 in the jsp page even all converts into the big piece together with the static state html contentses
30、 actually. these codes piece was organized the java servlet that customer can not see to go to by the engine of jsp, then the servlet edits and translate them automatically byte code of java. thus, the visitant that is the website requests a jsp page, under the condition of it is not knowing, an alr
31、eady born, the servlet actual full general that prepared to edit and translate completes all works, very concealment but again and efficiently. the servlet is to edit and translate of, so the code of jsp in the web page does not need when the every time requests that page is explain. the engine of j
32、sp need to be edit and translate after servlet the code end is modify only once, then this servlet that editted and translate can be carry out. the in view of the fact jsp engine auto is born to edit and translate the servlet also, need not procedure member begins to edit and translate the code, so
33、the jsp can bring vivid sex that function and fast developments need that you are efficiently.compared with the traditional cgi, the jsp has the equal advantage. first, on the speed, the traditional procedure of cgi needs to use the standard importation of the system to output the equipments to carr
34、y out the dynamic state web page born, but the jsp is direct is mutually the connection with server. and say for the cgi, each interview needs to add to add a progress to handle, the progress build up and destroy by burning constantly and will be a not small burden for calculator of be the server of
35、 web. the next in order, the jsp is specialized to develop but design for the web of, its purpose is for building up according to the web applied procedure, included the norm and the tool of a the whole set. use the technique of jsp can combine a lot of jsp pages to become a web application procedur
36、e very expediently.中文翻譯jsp技術(shù)發(fā)展史作者:bluce rakel出處:/zh-cn/magazine/cc163420.aspxjava server pages(jsp)是一種基于web的腳本編程技術(shù),類似于網(wǎng)景公司的服務(wù)器端java腳本語(yǔ)言 server-side javascript(ssjs)和微軟的active server pages(asp)。jsp比ssjs和asp具有更好的可擴(kuò)展性,并且它不專屬于任何一家廠商或某一特定的web服務(wù)器。盡管jsp規(guī)范是由sun公司制定的,但任何廠商都可以在自己的系統(tǒng)上實(shí)現(xiàn)
37、jsp。 在sun正式發(fā)布jsp(java server pages)之后,這種新的web應(yīng)用開(kāi)發(fā)技術(shù)很快引起了人們的關(guān)注。jsp為創(chuàng)建高度動(dòng)態(tài)的web應(yīng)用提供了一個(gè)獨(dú)特的開(kāi)發(fā)環(huán)境。按照sun的說(shuō)法,jsp能夠適應(yīng)市場(chǎng)上包括apache webserver、iis4.0在內(nèi)的85%的服務(wù)器產(chǎn)品。本文將介紹jsp相關(guān)的知識(shí),以及javabean的相關(guān)內(nèi)容,當(dāng)然都是比較粗略的介紹其中的基本內(nèi)容,或者說(shuō)僅僅是一個(gè)guide,如果讀者需要更詳細(xì)的信息,請(qǐng)參考相應(yīng)的jsp的書籍。a. 概述jsp(java server pages)是由sun microsystems公司倡導(dǎo)、許多公司參與一起建立的一種
38、動(dòng)態(tài)網(wǎng)頁(yè)技術(shù)標(biāo)準(zhǔn),其在動(dòng)態(tài)網(wǎng)頁(yè)的建設(shè)中有其強(qiáng)大而特別的功能。jsp與microsoft的asp技術(shù)非常相似。兩者都提供在html代碼中混合某種程序代碼、由語(yǔ)言引擎解釋執(zhí)行程序代碼的能力。下面我們簡(jiǎn)單的對(duì)它進(jìn)行介紹。b. jsp的特點(diǎn)待添加的隱藏文字內(nèi)容2按照腳本語(yǔ)言是服務(wù)于某一個(gè)子系統(tǒng)的語(yǔ)言這種論述,jsp應(yīng)當(dāng)被看作是一種腳本語(yǔ)言。然而,作為一種腳本語(yǔ)言,jsp又顯得過(guò)于強(qiáng)大了,在jsp中幾乎可以使用全部的java類。作為一種基于文本的、以顯示為中心的開(kāi)發(fā)技術(shù),jsp提供了java servlet的所有好處,并且,當(dāng)與一個(gè)javabeans類結(jié)合在一起時(shí),提供了一種使內(nèi)容和顯示邏輯分開(kāi)的簡(jiǎn)單方
39、式。分開(kāi)內(nèi)容和顯示邏輯的好處是,更新頁(yè)面外觀的人員不必懂得java代碼,而更新javabeans類的人員也不必是設(shè)計(jì)網(wǎng)頁(yè)的行家里手,就可以用帶javabeans類的jsp頁(yè)面來(lái)定義web模板,以建立一個(gè)由具有相似的外觀的頁(yè)面組成的網(wǎng)站。javabeans類完成數(shù)據(jù)提供,這樣在模板中就沒(méi)有java代碼,這意味著這些模板可以由一個(gè)html編寫人員來(lái)維護(hù)。當(dāng)然,也可以利用java servlet來(lái)控制網(wǎng)站的邏輯,通過(guò)java servlet調(diào)用jsp文件的方式來(lái)將網(wǎng)站的邏輯和內(nèi)容分離。一般來(lái)說(shuō),在實(shí)際的jsp引擎中,jsp頁(yè)面在執(zhí)行時(shí)是編譯式,而不是解釋式的。解釋式的動(dòng)態(tài)網(wǎng)頁(yè)開(kāi)發(fā)工具如asp、php
40、3等由于速度等原因已經(jīng)滿足不了當(dāng)前大型電子商務(wù)應(yīng)用的需要了,傳統(tǒng)的開(kāi)發(fā)技術(shù)都在向編譯執(zhí)行的方式改變,如aspasp+;php3php4。在jsp規(guī)范書中,并沒(méi)有明確要求jsp中的程序代碼部分(稱為scriptlet)一定要用java來(lái)寫。實(shí)際上,有一些jsp引擎就是采用的其他腳本語(yǔ)言,如emac-script、webl等,但實(shí)際上這幾種腳本語(yǔ)言也是構(gòu)建在java上面,編譯為servlet來(lái)實(shí)現(xiàn)的。按照jsp規(guī)范書寫,和java沒(méi)有任何關(guān)系的scriptlet也是可以的,不過(guò),由于jsp的強(qiáng)大功能主要在于能和javabeans、enterprise javabeans一起工作,所以即使是scri
41、ptlet部分不使用java,編譯成的執(zhí)行代碼也應(yīng)該是與java相關(guān)的。c. jsp的機(jī)制要理解jsp怎樣聯(lián)合以上各種所提到的技術(shù)的優(yōu)點(diǎn),來(lái)輕而易舉地實(shí)現(xiàn)各種效果,用戶必須首先了解“組件為中心的網(wǎng)頁(yè)開(kāi)發(fā)”和“頁(yè)面為中心的網(wǎng)頁(yè)開(kāi)發(fā)”的區(qū)別。 ssjs和asp都是在幾年前推出的,那時(shí)網(wǎng)絡(luò)還很年輕,沒(méi)有人知道除了把所有的商務(wù)、數(shù)據(jù)和表達(dá)邏輯統(tǒng)統(tǒng)堆進(jìn)原始網(wǎng)頁(yè)中之外還有什么更好的解決方法。這種以頁(yè)面為中心的模型容易學(xué)習(xí)并且得到相當(dāng)快速的發(fā)展。然而,隨著時(shí)間的推移,人們認(rèn)識(shí)到這種方法不適于構(gòu)建大型的、可升級(jí)的web應(yīng)用程序。在腳本環(huán)境中書寫的表達(dá)邏輯被鎖在頁(yè)面內(nèi),只有通過(guò)剪切和粘貼才能被重用。表達(dá)邏輯通常和商務(wù)及數(shù)據(jù)邏輯混在一起,這使得當(dāng)程序員試圖改變一個(gè)應(yīng)用程序的外觀而不想破壞與之緊密結(jié)合的商務(wù)邏輯時(shí),應(yīng)用程序的維護(hù)就
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度城市配送蘋果產(chǎn)銷合同模板
- 2025標(biāo)準(zhǔn)獨(dú)家買賣合同范本
- 餐飲業(yè)信息化建設(shè)與系統(tǒng)集成服務(wù)合同
- 餐飲場(chǎng)所桌椅翻新與采購(gòu)服務(wù)協(xié)議
- 2025精簡(jiǎn)版商業(yè)店鋪裝修合同
- 建筑工程質(zhì)量策劃方案編制指導(dǎo)手冊(cè) 2025
- 疼痛診療學(xué)(醫(yī)學(xué)高級(jí)):運(yùn)動(dòng)系統(tǒng)疾病考點(diǎn)鞏固
- 凝血四項(xiàng)測(cè)試題目及答案
- 干洗服務(wù)合同協(xié)議書范本
- 氧艙維護(hù)試題及答案
- 餐飲行業(yè)組織架構(gòu)及其部門職能
- 2025屆中考地理全真模擬卷 【山東專用】(含答案)
- Unit 8 Once upon a Time單元重點(diǎn)單詞變形短語(yǔ)語(yǔ)法句型精練(原卷版)
- 保潔臺(tái)賬管理制度
- 2024年下半年寧夏公路橋梁建設(shè)有限公司公開(kāi)招聘25人筆試參考題庫(kù)附帶答案詳解
- 2025年水利工程專業(yè)考試試卷及答案
- 2025年醫(yī)療器械專業(yè)考試試題及答案
- 佛山公務(wù)員試題及答案
- 《缺血性視神經(jīng)病變》教學(xué)課件
- 鼓脹中醫(yī)護(hù)理
- 2025年安徽高考?xì)v史模擬預(yù)測(cè)試卷(含答案解析)
評(píng)論
0/150
提交評(píng)論