版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、<p> Produce the design of the tool and realize automatically on the basis of JSP webpage</p><p> It is an important respect that Internet uses that Web develops technology, and JSP is the most advan
2、ced technology that Web is developed , it is present Web developer's first-selected technology. But because JSP has relatively high expectations for Web developer, a lot of general Web developers can not use this adv
3、anced technology . The discussion produces the design of the tool and realizes automatically on the basis of JSP webpage of the template and label storehouse, put forward concrete des</p><p> With the popul
4、arization of WWW (World Wide Web ), the technology of the dynamic webpage is developed rapidly too. From original CGI (Common Gateway In-terface ) to ASP (Active Server Page ), have met the webpage developer to the deman
5、d for developing technology of the dynamic webpage to a certain extent. But no matter CGI or ASP have certain limitation, for instance, consuming to resources of the server of CGI, ASP can only be used etc. with Microsof
6、t IIS, all these have limited scope of applica</p><p> JSP (Java Server Page ) technology is designed and used for responding to the request that like this. JSP is developed technology by the new webpage th
7、at Sun MicroSystem Company put out in June of 1999, it is that Web based on Java Serv-let and the whole Java system develops technology, and Servlet2. Expansion of 1API. Utilize this technology, can set up advancedly , s
8、afely and stepping dynamic websites of the platform .</p><p> Java is the future mainstream to develop technology , have a lot of advantages . JSP is Java important application technology on Internet/Intran
9、et Web , get extensive support and admit, it can conbine with various kinds of Java technology together intactly , thus realize very complicated application.</p><p> As a kind of technology of development b
10、ased on text , taking showing as centre, JSP has offered all advantages of Java Servlet. Logic function in order to make sure and showing the function was separated , JSP can already work with JavaBeans , Enterprise Java
11、Beans (EJB ) and Servlet . The developer of JSP can finish the work that majority and website's logic are correlated with through using JavaBeans , EJB and Servlet , and only assign the work shown to JSP page to fini
12、sh. Content and show adv</p><p> JSP develops technology as the webpage of the mainstream at present, has the following characteristics:</p><p> (1) Separate the formulation and showing of the
13、 content : Using JSP technology, the page developer of Web can use HTML or XML identification to design and format the final page . Use JSP identification or bound foot turn into dynamic content of page actually (whether
14、 content according to is it come change to ask). Produce logic of content of the identification and JavaBeans package , truss up of the little script encapsulation, all scripts run in the end of the server. If key logic
15、among identif</p><p> Though JSP is powerful, it requires the webpage developer should be quite familiar with Java. There are still relatively few Java programmers now, for general webpage developer, the gr
16、ammar of JSP is more difficult to grasp . So, need a kind of webpage developing instrument and offer commonly used JSP application to general webpage developer, is it understand general page develop developer of technolo
17、gy (HTML ) can use strong function of JSP too only to let.</p><p> Systematic design object and main technology of use:</p><p> (1) Design object</p><p> System this design objec
18、t for understand but HTML understand general webpage developer of JSP offer a webpage developing instrument at all only, enable them to follow the systematic file, use the daily function of JSP through the label, produce
19、 one finally and only include static HTML and dynamic JSP webpage of JSP label.</p><p> (2) Main technology</p><p> This system is in the design, consider using the technology of the template
20、and JSP label to realize mainly.</p><p> 1、Technology of the template</p><p> The technology of the template is widely applied to various kinds of development and application system. It produc
21、es some commonly used frame structure in advance , uses the family to choose the template from the template storehouse conveniently according to the needs of one's own one, is it is it put up to go again by oneself t
22、o need , save construction period in user , facilitate use of user. In this system , classify the page according to the function type , sum up the commonly used page type</p><p> 2、Storehouse technology of
23、the label</p><p> In JSP, movements can create and visit the language target of the procedure and influence the element exported and flowed. JSP has defined six standard movements. Except six standard movem
24、ent these, user can define own movement finish the specific function. These movements are known as the customer movement, they are the reusable procedure module . Through movement these, programmer can some encapsulation
25、 stand up too display function of page in JSP page, make the whole page more succinct and ea</p><p> JSP label storehouse is that one kind produces the method based on script of XML through JavaBeans. It is
26、 one of the greatest characteristics of JSP. Through the label storehouse , can expand JSP application unrestrictedly , finish any complicated application demand.</p><p> JSP label storehouse has the follow
27、ing characteristic:</p><p> ?、?Easy to use: The labels in JSP and general HTML marks are totally the same in appearance, it is as convenient as ordinary HTML mark to use. ② The easy code is paid most atte
28、ntion to: Every label in the label storehouse can finish certain function . Define ready to eat one label storehouse , is it pack one Jar file the label storehouse to need only, then only need use this label storehouse i
29、n other systems afterwards, needn't develop codes again , has raised the system and developed efficien</p><p> Systematic composition and realizing:</p><p> (1) The system making up</p&
30、gt;<p> This system is made up of four parts mainly:</p><p> 1、The database joins some: This system supports several daily databases , including Oracle, Sybase, MSSQLServer, MySQL and DB2, use JDBC
31、and database to link to each other according to database type and database name , user name , password that users offer that users choose. 2、The basic form of system produces some: After joining with the database , p
32、roduce the basic form TC-Tables and TC-Columns of two systems according to the user name linking to each other with the database , TC-Tables fo</p><p> (2) Systematic realization</p><p> 1、Rea
33、lization of the template storehouse and label storehouse</p><p> The planning and design of the label storehouse are essential in the whole system design, efficiency that the degree and system that are put
34、in an position have operated that its relation has reached codes. Its planning should follow the following principle . (1) Should try one's best little including static HTML among label. To general user, the labe
35、l is transparent. Users can not look over and revise labels . If include too many static HT-ML sentence in the label , will influence the modif</p><p> What this systematic subject procedure making is used
36、is JBuilder 6 of Borland Company. 0, it is Front-Page2000 of Microsoft Company that the template is developed and used, what the label storehouse is developed and used is UltraEdit editing machine, what JDK is adopted is
37、 JDK1. 4. The system testing environment is JRun3. 0.</p><p> Java future mainstream to develop language, and Java using JSP will become major technology that Web will be developed in the future too mainly
38、at Web. This system has adopted the label storehouse , one of the biggest characteristics of JSP, enable the general Web developer to use JSP strong dynamic page function conveniently too, develop JSP dynamic Web page of
39、 the modern techniques. Because this system adopts Java to develop, can run under the operating system of any support graphic interface </p><p> List of references:[1] Cay S. Horstmann,Gary Cornell. Java
40、2 key technology (CoreJava 2 ) [M ]. Beijing: Publishing house of the mechanical industry.</p><p> [2] Bruce Eckel. Java programming thought (Thinking in Java ) [M ]. Beijing: Publishing house of the mecha
41、nical industry.</p><p> [3] Joseph L. Weber. Java 2 programming is explained in detail (Using Java 2) [M ]. Beijing: Electronic Industry Press.</p><p> [4] Borland Company. Building Applicat
42、ions with JBuilder.</p><p> 基于JSP網(wǎng)頁自動生成工具的設(shè)計與實現(xiàn)</p><p> Web開發(fā)技術(shù)是Internet應(yīng)用的一個重要方面,而JSP又是Web開發(fā)的最先進的技術(shù),是當前Web開發(fā)人員的首選技術(shù)。但是由于JSP對Web開發(fā)人員要求較高,所以許多一般的Web開發(fā)人員還不能夠使用這一項先進的技術(shù)。討論基于模板和標簽庫的JSP網(wǎng)頁自動生成工具的設(shè)計和
43、實現(xiàn),提出具體的設(shè)計思想和實現(xiàn)方法。 </p><p> 隨著WWW(World Wide Web)的普及,動態(tài)網(wǎng)頁技術(shù)也急速發(fā)展。從原來的CGI(Common Gateway In-terface)到ASP(Active Server Page),都從某種程度上滿足了網(wǎng)頁開發(fā)人員對動態(tài)網(wǎng)頁開發(fā)技術(shù)的需求。但是不管是CGI還是ASP都存在一定的局限性,如CGI對服務(wù)器資源的耗費,ASP只能同Microsoft
44、IIS一起使用等,這些都限制了這些技術(shù)的使用范圍,極大地阻礙了它們的推廣。廣大的頁面開發(fā)人員都熱切地盼望一種統(tǒng)一的頁面開發(fā)技術(shù),該技術(shù)應(yīng)該具有的特點:①與操作平臺無關(guān),能夠在任何Web或應(yīng)用程序服務(wù)器上運行;②將應(yīng)用程序邏輯和頁面顯示分離;③提供代碼重用,簡化開發(fā)基于Web的交互式應(yīng)用程序的過程。 </p><p> JSP(Java Server Page)技術(shù)就是被設(shè)計用來滿足這樣的要求的。JSP是由Sun
45、 MicroSystem公司于1999年6月推出的新的網(wǎng)頁開發(fā)技術(shù),它是基于Java Serv-let以及整個Java體系的Web開發(fā)技術(shù),是Servlet2.1API的擴展。利用這一技術(shù),可以建立先進、安全和跨平臺的動態(tài)網(wǎng)站。 </p><p> Java是未來的主流開發(fā)技術(shù),具有很多優(yōu)勢。JSP則是Java在Internet/Intranet Web上的重要應(yīng)用技術(shù),得到了廣泛的支持和承認,它可以和各種Ja
46、va技術(shù)完好地結(jié)合在一起,從而實現(xiàn)非常復(fù)雜的應(yīng)用。 </p><p> 作為一種基于文本的、以顯示為中心的開發(fā)技術(shù),JSP提供了Java Servlet的所有好處。為了做到邏輯功能和顯示功能分開,JSP已經(jīng)可以和JavaBeans、Enterprise JavaBeans(EJB)和Servlet一起工作。JSP的開發(fā)人員可以通過使用JavaBeans、EJB和Servlet來完成大部分與網(wǎng)站邏輯相關(guān)的工作,而
47、僅僅把顯示的工作交給JSP頁面來完成。內(nèi)容和顯示邏輯分開的好處在于,更新頁面外觀的人員不必懂得Java代碼,而更新Java類的人員也不必是設(shè)計網(wǎng)頁的行家。這就可以用帶Java類的JSP頁面來定義Web模板,以建立一個具有相似外觀的頁面組成的網(wǎng)站。Java類完成數(shù)據(jù)提供,在模板中就沒有Java代碼,這意味著這些模板可以由一個HTML編寫人員來維護。 </p><p> JSP作為當前主流的網(wǎng)頁開發(fā)技術(shù),具有如下特
48、點: </p><p> (1)將內(nèi)容的生成和顯示進行分離:使用JSP技術(shù),Web頁面開發(fā)人員可以使用HTML或者XML標識來設(shè)計和格式化最終的頁面。使用JSP標識或者小腳本來生成頁面上的動態(tài)內(nèi)容(內(nèi)容是根據(jù)請求來變化的)。生成內(nèi)容的邏輯被封裝在標識和JavaBeans組件中,并且捆綁在小腳本中,所有的腳本在服務(wù)器端運行。如果核心邏輯被封裝在標識和JavaBeans中,那么其他人,如Web管理人員和頁面設(shè)計者,
49、能夠編輯和使用JSP頁面,而不影響內(nèi)容的生成。 </p><p> ?。?)強調(diào)可重用的組件:絕大多數(shù)JSP頁面依賴于可重用的、跨平臺的組件來完成應(yīng)用程序所要求的更為復(fù)雜的處理。得益于Java的操作平臺無關(guān)性,開發(fā)人員能夠很方便共享和交流執(zhí)行普通操作的組件,或者使得這些組件為更多的使用者所使用?;诮M件的方法加速了總體的開發(fā)過程,極大地提高了項目整體開發(fā)的效率。 </p><p> 雖然
50、JSP功能強大,但是它要求網(wǎng)頁開發(fā)人員對Java要相當熟悉。而現(xiàn)在Java程序員還比較少,對一般的網(wǎng)頁開發(fā)人員來說,JSP的語法還是比較難于掌握的。所以,就需要有一種網(wǎng)頁開發(fā)工具,為一般的網(wǎng)頁開發(fā)人員提供常用的JSP應(yīng)用,讓只懂得一般頁面開發(fā)技術(shù)(HTML)的開發(fā)人員也能夠使用JSP的強大功能。 </p><p> 系統(tǒng)設(shè)計目標和使用的主要技術(shù): </p><p><b>
51、(1)設(shè)計目標 </b></p><p> 本系統(tǒng)的設(shè)計目標是為只懂得HTML但完全不了解JSP的一般網(wǎng)頁開發(fā)人員提供一個網(wǎng)頁開發(fā)工具,使他們能夠根據(jù)系統(tǒng)文檔,通過標簽使用JSP的常用功能,最后生成一個只包含靜態(tài)HTML和JSP標簽的動態(tài)JSP網(wǎng)頁。 </p><p><b> ?。?)主要技術(shù) </b></p><p> 本
52、系統(tǒng)在設(shè)計時,主要考慮使用模板和JSP標簽的技術(shù)來實現(xiàn)。 </p><p><b> 1、模板技術(shù) </b></p><p> 模板技術(shù)被廣泛地應(yīng)用于各種開發(fā)和應(yīng)用系統(tǒng)中。它預(yù)先生成一些常用的框架結(jié)構(gòu),使用戶可以根據(jù)自己的需要方便地從模板庫中選擇模板,而不用自己重新去搭建,節(jié)省了用戶的開發(fā)時間,方便了用戶的使用。在本系統(tǒng)中,將頁面按照功能類型進行分類,歸納出常用的
53、頁面類型,生成模板庫。 </p><p><b> 2、標簽庫技術(shù) </b></p><p> 在JSP中,動作是可以創(chuàng)造與訪問程序語言對象和影響輸出流的元素。JSP定義了六個標準的動作。除了這六個標準動作以外,用戶可以定義自己的動作來完成特定的功能。這些動作被稱為客戶化動作,它們是可重用的程序模塊。通過這些動作,程序員就可以在JSP頁面中把頁面的顯示功能也部分地
54、封裝起來,使整個頁面更加簡潔和易于維護。在一個JSP頁面中,這些客戶化動作是通過客戶化標簽來調(diào)用的。而標簽庫(Tag Library)就是客戶化標簽的集合。 JSP標簽庫是一種通過JavaBeans生成基于XML的腳本的方法。它是JSP的最大特點之一。通過標簽庫,能夠無限制地擴展JSP應(yīng)用,完成任何復(fù)雜的應(yīng)用需求。 JSP標簽庫具有以下特點: </p><p> ?、?易于使用:JSP中的標簽和一
55、般的HTML標記外表上是完全一樣的,使用起來和普通的HTML標記一樣方便。 ② 易于代碼重用:標簽庫中的每一個標簽都能完成一定的功能。一旦定義好了一個標簽庫,只需要把這個標簽庫包裝成一個Jar文件,那么以后只要在別的系統(tǒng)中使用這個標簽庫就行了,而不用重新開發(fā)代碼,極大地提高了系統(tǒng)開發(fā)效率,降低了開發(fā)成本。 ③ 易于代碼維護:所有的應(yīng)用邏輯都封裝在標簽處理器和JavaBeans中,所有的標簽都集中在一個標簽庫中。如果需
56、要更新代碼或者需要修改一個網(wǎng)頁上的功能,只需要修改相應(yīng)的標簽即可。通過這種統(tǒng)一維護方式,不用在每個網(wǎng)頁上去作修改,極大地減少了維護的工作量,節(jié)約了維護成本。 ④ 易于系統(tǒng)擴充:如果需要向系統(tǒng)中添加新的功能,只需要定義一個新的標簽來完成這一功能即可,無需對系統(tǒng)的其它方面作任何改動。標簽庫可以繼承JSP規(guī)范各方面的特性。這樣就可以無限制地擴展和增加JSP的功能,而不需要等待下一版本JSP的出現(xiàn)。</p><p&
57、gt; 系統(tǒng)的組成和實現(xiàn): (1)系統(tǒng)組成 本系統(tǒng)主要由四個部分組成: </p><p> 1、數(shù)據(jù)庫連接部分:本系統(tǒng)支持常用的幾個數(shù)據(jù)庫,包括Oracle、Sybase、MSSQLServer、MySQL和DB2,根據(jù)用戶選擇的數(shù)據(jù)庫類型和用戶提供的數(shù)據(jù)庫名稱、用戶名、密碼使用JDBC同數(shù)據(jù)庫相連。 2、系統(tǒng)基本表生成部分:和數(shù)據(jù)庫連接以后,根據(jù)同數(shù)據(jù)庫相連的用戶名生成兩個系統(tǒng)基本
58、表TC-Tables和TC-Columns,TC-Tables表包含在該數(shù)據(jù)庫中屬于該用戶的所有的表的英文名稱、中文名稱和一些屬性,如是否可修改、是否可查詢等;TC-Columns表包含在該數(shù)據(jù)庫中屬于該用戶的所有的表的所有列的中英文名稱和其它一些屬性。如是否可顯示、是否可查詢等。這兩個系統(tǒng)基本表在整個系統(tǒng)的開發(fā)過程中提供用戶所使用數(shù)據(jù)庫的基本信息。 3、模板選擇和網(wǎng)頁生成部分:該部分是系統(tǒng)的核心部分。它包含了兩個子模塊。
59、 ?、?模板選擇部分:系統(tǒng)為用戶提供模板選擇界面,讓用戶根據(jù)需要從模板庫中選擇所要使用的模板。 ?、?模板處理部分:根據(jù)用戶選擇的模板,系統(tǒng)調(diào)用指定的模板處理模塊對這個模板進行處理。當處理程序遇到模板中的標簽時,就為用戶提供交互界面,讓用戶為指定的標簽輸</p><p> 1、模板庫和標簽庫的實現(xiàn) 標簽庫的規(guī)劃和設(shè)計在整個系統(tǒng)設(shè)計中至關(guān)重要,它關(guān)系到了代碼重用的程度和系統(tǒng)運行的效率。它的規(guī)劃應(yīng)該遵循以
60、下原則。 1)在標簽中應(yīng)該盡量少的包含靜態(tài)的HTML。對于一般用戶來說,標簽是透明的。用戶不能夠查看和修改標簽。如果在標簽中包含了過多的靜態(tài)HT-ML語句,將影響用戶對頁面的靜態(tài)效果的修改和完善,限制標簽的使用。 2)盡量提高代碼的重用度。在對JSP應(yīng)用進行分類是盡量把公用的JSP應(yīng)用提取出來,形成標簽。而不用在每個標簽中都重復(fù)實現(xiàn)該應(yīng)用。這樣在以后要對該應(yīng)用進行修改和完善時,只需對這一個標簽進行修改即可,易于代碼的維護。
61、 3)方便用戶的使用。在設(shè)計標簽庫時,應(yīng)該充分考慮到用戶的使用情況,使用戶能夠很容易和方便地理解和使用標簽。 ?、?標簽庫的定義:定義一個標簽庫,必須首先定義一個標簽庫描述文件(TLD)。這是一個基于XML的腳本文件,在這個文件中定義了XML的版本、所使用的編碼、標簽庫的版本、所使用的JSP的版本、標簽庫的名稱和這個庫中所包含的所有的標簽的定義和參數(shù)描述,包括標簽的名稱,標簽所對應(yīng)的Java類,標簽的描述信息等。</p&g
62、t;<p> Java是未來開發(fā)語言的主流,而Java在Web上的主要應(yīng)用JSP也必將成為未來Web開發(fā)的主流技術(shù)。本系統(tǒng)采用了JSP的最大特點之一的標簽庫,使一般的Web開發(fā)人員也能夠方便地使用JSP強大的動態(tài)頁面功能,開發(fā)出技術(shù)先進的JSP動態(tài)Web頁面。由于本系統(tǒng)采用Java語言進行開發(fā),所以可以在任何支持圖形化界面的操作系統(tǒng)下運行,實現(xiàn)了完全的與平臺無關(guān)。本系統(tǒng)易于擴充和完善。在以后可以考慮為用戶提供接口,使用戶
63、可以自己擴充模板庫和標簽庫,進一步增強系統(tǒng)的功能。 </p><p><b> 參考文獻: </b></p><p> [1] Cay S.Horstmann,Gary Cornell.Java 2核心技術(shù)(CoreJava 2)[M].北京:機械工業(yè)出版社. </p><p> ?。?] Bruce Eckel.Java編程思想(Thin
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 動畫專業(yè)畢業(yè)設(shè)計外文翻譯
- 水泥專業(yè)畢業(yè)設(shè)計---外文翻譯
- 汽車專業(yè)--畢業(yè)設(shè)計外文翻譯
- 土木專業(yè)畢業(yè)設(shè)計外文翻譯
- 計算機專業(yè)畢業(yè)設(shè)計外文翻譯----asp.net 網(wǎng)頁概述
- 供熱專業(yè)畢業(yè)設(shè)計外文翻譯
- 機械專業(yè)畢業(yè)設(shè)計外文翻譯
- 機械數(shù)控專業(yè)畢業(yè)設(shè)計外文翻譯
- 建筑專業(yè)畢業(yè)設(shè)計外文翻譯3
- 電氣專業(yè)畢業(yè)設(shè)計外文翻譯
- 采礦專業(yè)畢業(yè)設(shè)計(含外文翻譯)
- 通信專業(yè)畢業(yè)設(shè)計外文翻譯 (2)
- 汽車專業(yè) 機械 畢業(yè)設(shè)計翻譯外文翻譯
- 橋梁專業(yè)畢業(yè)設(shè)計(含外文翻譯)
- 機械專業(yè)畢業(yè)設(shè)計外文翻譯1
- 機械專業(yè)畢業(yè)設(shè)計外文翻譯5
- 采礦專業(yè)畢業(yè)設(shè)計外文翻譯8
- 地質(zhì)專業(yè)畢業(yè)設(shè)計(論文)外文翻譯
- 食品專業(yè)畢業(yè)設(shè)計外文翻譯1
- 機械專業(yè)畢業(yè)設(shè)計--外文資料翻譯
評論
0/150
提交評論