校園網(wǎng)網(wǎng)站設(shè)計——外文翻譯_第1頁
校園網(wǎng)網(wǎng)站設(shè)計——外文翻譯_第2頁
校園網(wǎng)網(wǎng)站設(shè)計——外文翻譯_第3頁
校園網(wǎng)網(wǎng)站設(shè)計——外文翻譯_第4頁
校園網(wǎng)網(wǎng)站設(shè)計——外文翻譯_第5頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、精選優(yōu)質(zhì)文檔傾情為你奉上精選優(yōu)質(zhì)文檔傾情為你奉上專心專注專業(yè)專心專注專業(yè)精選優(yōu)質(zhì)文檔傾情為你奉上專心專注專業(yè)湖南工學(xué)院本科外文翻譯基于JSP網(wǎng)頁自動生成工具的設(shè)計與實現(xiàn)Produce the design of the tool and realizeautomatically on the basis of JSP web page學(xué) 院: 計算機與信息科學(xué)學(xué)院 專 業(yè): 信息與計算科學(xué) 學(xué) 生 姓 名: 何蘇蓓 學(xué) 號: 指 導(dǎo) 教 師: 王新祥 完 成 日 期: 2015-6 湖南工學(xué)院Produce the design of the tool and realize automati

2、cally on the basis of JSP web pageAlfred V.Aho and John E.HopcroftIt is an important respect that Internet uses that Web develops technology, and JSP is the most advanced technology that Web is developed, it is present Web developers first-selected technology. But because JSP has relatively high exp

3、ectations for Web developer, a lot of general Web developers can not use this advanced technology. The discussion produces the design of the tool and realizes automatically on the basis of JSP web page of the template and label storehouse, put forward concrete design philosophy and implementation me

4、thod . With the popularization of WWW (World Wide Web), the technology of the dynamic web page is developed rapidly too. From original CGI (Common Gateway Interface) to ASP (Active Server Page), have met the web page developer to the demand for developing technology of the dynamic web page to a cert

5、ain 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 Microsoft IIS, all these have limited scope of application of the technology, have hindered their popularization greatly. The vast page developers a

6、ll look forward to a kind of unified page and develop technology earnestly, characteristic that this technology there should be:Have nothing to do with the operating platform, can run on any Web or the application program server, Show the logic and page of application program that separates, Offer c

7、odes to put in an position, simplify and develop the course based on interactive application program of Web.JSP (Java Server Page) technology is designed and used for responding to the request that like this. JSP is developed technology by the new web page that Sun Micro System Company put out in Ju

8、ne 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 advanced, safely and stepping dynamic websites of the platform. Java is the future mainstream to develop technology, have a lot of adv

9、antages. JSP is Java important application technology on Internet/Intranet Web, get extensive support and admit, it can conbine with various kinds of Java technology together intactly, thus realize very complicated application.As a kind of technology of development based on text, taking showing as c

10、entre, 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 JavaBeans (EJB) and Servlet. The developer of JSP can finish the work that majority and websites logic are correlated wi

11、th through using JavaBeans, EJB and Servlet, and only assign the work shown to JSP page to finish. Content and show advantage that logic separate lie in, upgrade person, page of appearance neednt understand Java code, the personnel upgrading Javas neednt be experts who design web page either. This c

12、an define Web template in JSP page with Javas, in order to set up websites made up of a page with similar appearance. Java completion data offer, have Java code among template, this mean template these can write by one HTML person is it maintain to come.JSP develops technology as the web page of the

13、 mainstream at present, has the following characteristicsSeparate the formulation and showing of the 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

14、 actually (whether 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 among identification and JavaBeans, then other people, such as

15、Web administrative staff and page designer encapsulation, can edit and use JSP page, and does not influence the formulation of the content .Emphasize the reusable package: Most JSP pages depend on the reusable one, the package stepping the platform finish more complicated treatment with required app

16、lication program. Benefitting from the independence of operating platform of Java, the developer can be very convenient to share and exchange and carry out the ordinary package that operated, or make these packages used by more users. The method based on package has accelerated the total development

17、 course, the efficiency of improving the project and developing wholly greatly.Though JSP is powerful, it requires the web page developer should be quite familiar with Java. There are still relatively few Java programmers now, for general web page developer, the grammar of JSP is more difficult to g

18、rasp. So, need a kind of web page developing instrument and offer commonly used JSP application to general web page developer, is it understand general page develop developer of technology (HTML) can use strong function of JSP too only to let.Systematic design object and main technology of useDesign

19、 object: System this design object for understand but HTML understand general web page developer of JSP offer a web page developing instrument at all only, enable them to follow the systematic file, use the daily function of JSP through the label, produce one finally and only include static HTML and

20、 dynamic JSP web page of JSP label.Main technology: This system is in the design, consider using the technology of the template and JSP label to realize mainly.Technology of the template: The technology of the template is widely applied to various kinds of development and application system. It prod

21、uces some commonly used frame structure in advance, uses the family to choose the template from the template storehouse conveniently according to the needs of ones own one, is it is it put up to go again by oneself to need, save construction period in user, facilitate use of user. In this system, cl

22、assify the page according to the function type, sum up the commonly used page type, produce the template storehouse. Storehouse technology of the label: In JSP, movements can create and visit the language target of the procedure and influence the element exported and flowed. JSP has defined six stan

23、dard movements. Except six standard movement 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 stand up too display function of page i

24、n JSP page, make the whole page more succinct and easier to maintain. In a JSP page, movements were transfered through the customer label in these customers. And the label storehouse (Tag Library) is the set of the customer label. JSP label storehouse is that one kind produces the method based on sc

25、ript of XML through JavaBeans. It is one of the greatest characteristics of JSP. Through the label storehouse, can expand JSP application unrestrictedly, finish any complicated application demand.JSP label storehouse has the following characteristic Easy to use: The labels in JSP and general HTML ma

26、rks are totally the same in appearance, it is as convenient as ordinary HTML mark to use.The easy code is paid most attention 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

27、 only need use this label storehouse in other systems afterwards, neednt develop codes again, has raised the system and developed efficiency greatly, have reduced the development cost.The easy code is safeguarded: All application logic is encapsulated in label processor and JavaBeans, all labels con

28、centrate on a label storehouse. If need to upgrade codes or need to revise the function on a web page, only need to revise the corresponding label. Maintain way in unison through this kind, it is unnecessary in each web page is it is it fix to act as to get onning, have reduce the work load safeguar

29、ded greatly, has economized the cost of safeguarding.The easy system is expanded: If need to add the new function to the system, only need to define a new label to finish this function, do not need to do any change to other respects of the system. Can inherit JSP normal characteristics of various fi

30、elds in the label storehouse. Can expand and increase the function of JSP unrestrictedly like this, and does not need to wait for the appearance of the next edition JSP .Systematic composition and realizingThe system making up: This system is made up of four parts mainlyThe database joins some: This

31、 system supports several daily databases, including Oracle, Sybase, MSSQLServer, My SQL and DB2, use JDBC and database to link to each other according to database type and database name, user name, password that users offer that users choose. The basic form of system produces some: After joining wit

32、h the database, produce 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 form includes English name, Chinese name and some attribute of form belonging to this user in this database, for instance can revise, can inqui

33、re about; The Chinese and English name of the row and some other attribute that TC-Columns form includes belonging to all forms of this users in this database. For instance can show, can inquire about. Basic information of the database that these basic forms of two systems provide to users institute

34、 for use in the course of development of the whole system. The template is chosen to produce some with the web page: This part is a key part of a system. It includes two pieces of sub module .The template is chosen some: The system offers the template to user and chooses the interface, let users cho

35、ose the templates used from the template storehouse according to the need.The template is dealt with some: According to template that user choose, system transfer designated template deal with module is it punish to go on to these template. When dealing with the label that the procedure meets in the

36、 template, offer the mutual interface to user, let user input parameter for designated label, prove system validity of label that user input. Finished the formulation of JSP page systematically finally.Web page preview is with revising some: After the web page was produced out, the system has offere

37、d a web page preview window and code to user and looked over that revises the window. Through this preview window, users can look at the result of JSP page produced out in advance. If user static result of respect in page very satisfied, user can through code look over revise window revise HTML code

38、 of code. If users have further demands for the static result of the page, the system has also offered a piece of interface which transfers DreamWeaver editing machine to user, users can use it to carry on further modification and perfection to the static result of JSP page that is produced out .Rea

39、lization of the template storehouse and label storehouseThe planning and design of the label storehouse are essential in the whole system design, efficiency that the degree and system that are put in an position have operated that its relation has reached codes. Its planning should follow the follow

40、ing principle . Should try ones best little including static HTML among label. To general user, the label is transparent. Users can not look over and revise labels. If include too many static HT-ML sentence in the label, will influence the modification and perfection of users static result to the pa

41、ge, limit the use of the label. Try ones best to raise the paying most attention to degree of the code. Is it is it is it is it is it is it get to JSP public JSP out to withdraw to use to try ones best to classify to go on to use, form labels. Do not use and realize this application repeatedly in ea

42、ch label. While revising and perfecting to using like this, only need to revise this label, maintenance of the easy code.Facilitate users use. While designing the label storehouse, should fully consider users operating position, it can very easy and understanding and using labels conveniently to use

43、 the family.Definition of the label storehouse: Define a label storehouse, must define a label storehouse and describe the file (TLD) at first. This is a file of script based on XML, have defined the edition of XML in this file, codes used, the edition, name and definition and parameter of all label

44、s included in this storehouse of the label storehouse of the edition of the label storehouse, JSP used describe, including the name of the label, corresponding Javas of label, description information of the label ,etc.Realization of the label: One label first special Java type, this each must inheri

45、t TagSupports, this each is in javax. servlet. jsp. Define in tagext bag. In the labels, the parameter which includes this label initializes the subject treatment method (Handler) of method (Set/Get), label and method available for making the first class label to adjust,etc.Realization of the templa

46、te: A template is that one contains JSP file that labels quoted. In order to quote the labels defined in the template, must introduce the label storehouse at first . Among them uri appoints the label storehouse to describe the route of the file ; Prefixes used when prefix appoints to quote labels.Wh

47、ile quoting the designated label in the template, use the designated prefix while introducing the label storehouse, appoint the name of the label; It is the parameter assignment of the label.What this systematic subject procedure making is used is JBuilder 6.0 of Borland Company, it is Front of Micr

48、osoft 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 JDK1. 4. The system testing environment is JRun3. 0.Java future mainstream to develop language, and Java using JSP will become major technology

49、that Web will be developed in the future too mainly 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 the modern techniques. Becau

50、se this system adopts Java to develop, can run under the operating system of any support graphic interface, have realized complete having nothing to do with the platform. This system is easy to expand and perfect. Can consider offering the interface to user afterwards, will use the family to expand

51、the template storehouse and label storehouse by oneself, strengthen the systematic function further.List of references: 1 Cay S. Horstmann,Gary Cornell. Java 2 key technology (CoreJava 2) M . Beijing: Publishing house of the mechanical industry.2 Bruce Eckel. Java programming thought (Thinking in Ja

52、va) M . Beijing:Publishing house of the mechanical industry.3 Joseph L. Weber. Java 2 programming is explained in detail (Using Java 2) M .Beijing: Electronic Industry Press.4 Borland Company. Building Applications with JBuilder.基于JSP網(wǎng)頁自動生成工具的設(shè)計與實現(xiàn)Alfred V.Aho and John E.HopcroftWeb開發(fā)技術(shù)是Internet應(yīng)用的一

53、個重要方面,而JSP又是Web開發(fā)的最先進的技術(shù),是當(dāng)前Web開發(fā)人員的首選技術(shù)。但是由于JSP對Web開發(fā)人員要求較高,所以許多一般的Web開發(fā)人員還不能夠使用這一項先進的技術(shù)。討論基于模板和標(biāo)簽庫的JSP網(wǎng)頁自動生成工具的設(shè)計和實現(xiàn),提出具體的設(shè)計思想和實現(xiàn)方法。 隨著WWW(World Wide Web)的普及,動態(tài)網(wǎng)頁技術(shù)也急速發(fā)展。從原來的CGI(Common Gateway Interface)到ASP(Active Server Page),都從某種程度上滿足了網(wǎng)頁開發(fā)人員對動態(tài)網(wǎng)頁開發(fā)技術(shù)的需求。但是不管是CGI還是ASP都存在一定的局限性,如CGI對服務(wù)器資源的耗費,ASP只

54、能同Microsoft IIS一起使用等,這些都限制了這些技術(shù)的使用范圍,極大地阻礙了它們的推廣。廣大的頁面開發(fā)人員都熱切地盼望一種統(tǒng)一的頁面開發(fā)技術(shù),該技術(shù)應(yīng)該具有的特點:與操作平臺無關(guān),能夠在任何Web或應(yīng)用程序服務(wù)器上運行;將應(yīng)用程序邏輯和頁面顯示分離;提供代碼重用,簡化開發(fā)基于Web的交互式應(yīng)用程序的過程。 JSP(Java Server Page)技術(shù)就是被設(shè)計用來滿足這樣的要求的。JSP是由Sun MicroSystem公司于1999年6月推出的新的網(wǎng)頁開發(fā)技術(shù),它是基于Java Servlet以及整個Java體系的Web開發(fā)技術(shù),是Servlet21API的擴展。利用這一技術(shù),可

55、以建立先進、安全和跨平臺的動態(tài)網(wǎng)站。 Java是未來的主流開發(fā)技術(shù),具有很多優(yōu)勢。JSP則是Java在InternetIntranet Web上的重要應(yīng)用技術(shù),得到了廣泛的支持和承認,它可以和各種Java技術(shù)完好地結(jié)合在一起,從而實現(xiàn)非常復(fù)雜的應(yīng)用。 作為一種基于文本的、以顯示為中心的開發(fā)技術(shù),JSP提供了Java Servlet的所有好處。為了做到邏輯功能和顯示功能分開,JSP已經(jīng)可以和JavaBeans、Enterprise JavaBeans(EJB)和Servlet一起工作。JSP的開發(fā)人員可以通過使用JavaBeans、EJB和Servlet來完成大部分與網(wǎng)站邏輯相關(guān)的工作,而僅僅把

56、顯示的工作交給JSP頁面來完成。內(nèi)容和顯示邏輯分開的好處在于,更新頁面外觀的人員不必懂得Java代碼,而更新Java類的人員也不必是設(shè)計網(wǎng)頁的行家。這就可以用帶Java類的JSP頁面來定義Web模板,以建立一個具有相似外觀的頁面組成的網(wǎng)站。Java類完成數(shù)據(jù)提供,在模板中就沒有Java代碼,這意味著這些模板可以由一個HTML編寫人員來維護。 JSP是當(dāng)前主流的網(wǎng)頁開發(fā)技術(shù),它的主要特點(1)將內(nèi)容的生成和顯示進行分離:使用JSP技術(shù),Web頁面開發(fā)人員可以使用HTML或者XML標(biāo)識來設(shè)計和格式化最終的頁面。使用JSP標(biāo)識或者小腳本來生成頁面上的動態(tài)內(nèi)容(內(nèi)容是根據(jù)請求來變化的)。生成內(nèi)容的邏輯

57、被封裝在標(biāo)識和JavaBeans組件中,并且捆綁在小腳本中,所有的腳本在服務(wù)器端運行。如果核心邏輯被封裝在標(biāo)識和JavaBeans中,那么其他人,如Web管理人員和頁面設(shè)計者,能夠編輯和使用JSP頁面,而不影響內(nèi)容的生成。 (2)強調(diào)可重用的組件:絕大多數(shù)JSP頁面依賴于可重用的、跨平臺的組件來完成應(yīng)用程序所要求的更為復(fù)雜的處理。得益于Java的操作平臺無關(guān)性,開發(fā)人員能夠很方便共享和交流執(zhí)行普通操作的組件,或者使得這些組件為更多的使用者所使用?;诮M件的方法加速了總體的開發(fā)過程,極大地提高了項目整體開發(fā)的效率。 雖然JSP功能強大,但是它要求網(wǎng)頁開發(fā)人員對Java要相當(dāng)熟悉。而現(xiàn)在Java程

58、序員還比較少,對一般的網(wǎng)頁開發(fā)人員來說,JSP的語法還是比較難于掌握的。所以,就需要有一種網(wǎng)頁開發(fā)工具,為一般的網(wǎng)頁開發(fā)人員提供常用的JSP應(yīng)用,讓只懂得一般頁面開發(fā)技術(shù)(HTML)的開發(fā)人員也能夠使用JSP的強大功能。 系統(tǒng)設(shè)計目標(biāo)和使用的主要技術(shù): 設(shè)計目標(biāo):本系統(tǒng)的設(shè)計目標(biāo)是為只懂得HTML但完全不了解JSP的一般網(wǎng)頁開發(fā)人員提供一個網(wǎng)頁開發(fā)工具,使他們能夠根據(jù)系統(tǒng)文檔,通過標(biāo)簽使用JSP的常用功能,最后生成一個只包含靜態(tài)HTML和JSP標(biāo)簽的動態(tài)JSP網(wǎng)頁。 主要技術(shù) :本系統(tǒng)在設(shè)計時,主要考慮使用模板和JSP標(biāo)簽的技術(shù)來實現(xiàn)。 模板技術(shù) :模板技術(shù)被廣泛地應(yīng)用于各種開發(fā)和應(yīng)用系統(tǒng)中。

59、它預(yù)先生成一些常用的框架結(jié)構(gòu),使用戶可以根據(jù)自己的需要方便地從模板庫中選擇模板,而不用自己重新去搭建,節(jié)省了用戶的開發(fā)時間,方便了用戶的使用。在本系統(tǒng)中,將頁面按照功能類型進行分類,歸納出常用的頁面類型,生成模板庫。 標(biāo)簽庫技術(shù) ,在JSP中,動作是可以創(chuàng)造與訪問程序語言對象和影響輸出流的元素。JSP定義了六個標(biāo)準的動作。除了這六個標(biāo)準動作以外,用戶可以定義自己的動作來完成特定的功能。這些動作被稱為客戶化動作,它們是可重用的程序模塊。通過這些動作,程序員就可以在JSP頁面中把頁面的顯示功能也部分地封裝起來,使整個頁面更加簡潔和易于維護。在一個JSP頁面中,這些客戶化動作是通過客戶化標(biāo)簽來調(diào)用的

60、。而標(biāo)簽庫(Tag Library)就是客戶化標(biāo)簽的集合。 JSP標(biāo)簽庫是一種通過JavaBeans生成基于XML的腳本的方法。它是JSP的最大特點之一。通過標(biāo)簽庫,能夠無限制地擴展JSP應(yīng)用,完成任何復(fù)雜的應(yīng)用需求。 JSP標(biāo)簽庫具有以下特點 易于使用:JSP中的標(biāo)簽和一般的HTML標(biāo)記外表上是完全一樣的,使用起來和普通的HTML標(biāo)記一樣方便。 易于代碼重用:標(biāo)簽庫中的每一個標(biāo)簽都能完成一定的功能。一旦定義好了一個標(biāo)簽庫,只需要把這個標(biāo)簽庫包裝成一個Jar文件,那么以后只要在別的系統(tǒng)中使用這個標(biāo)簽庫就行了,而不用重新開發(fā)代碼,極大地提高了系統(tǒng)開發(fā)效率,降低了開發(fā)成本。 易于代碼維護:所有的應(yīng)

溫馨提示

  • 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. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論