圖書管理系統中英文對照外文翻譯文獻_第1頁
圖書管理系統中英文對照外文翻譯文獻_第2頁
圖書管理系統中英文對照外文翻譯文獻_第3頁
圖書管理系統中英文對照外文翻譯文獻_第4頁
圖書管理系統中英文對照外文翻譯文獻_第5頁
已閱讀5頁,還剩8頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、中英文對照外文翻譯文獻中英文對照外文翻譯JSP 和 SQL Server 2000相關介紹JSP(JavaServer 是由 Sun Microsystems公司倡導、許多公司參與一起建立的一種動態網頁技術標準。JSP技術有點類似ASP HTML文(*.htm,*.html)中插入 Java程序段(Scriptlet)和 JSP標記(tag) JSP文件(*.jsp)。用 JSP開發的 Web應用是跨平臺的,即能在 Linux下運行,也能在其他操作系統上運行。 JSP 技術使用 Java 編程語言編寫類 XML 的 tags 和scriptlets,來封裝產生動態網頁的處理邏輯。網頁還能通過

2、tags和 scriptlets訪問存在于服務端的資源的應用邏輯。JSP將網頁邏輯與網頁設計和顯示分離,支持可重用的基于組件的設計,使基于 Web的應用程序的開發變得迅速和容易。Web服務器在遇到訪問 JSP網頁的請求時,首先執行其中的程序段,然后將執行結果連同 JSP文件中的 HTML代碼一起返回給客戶。插入的 Java程序段可以操作數據庫、重新定向網頁等,以實現建立動態網頁所需要的功能。JSP與 Java Servlet一樣,是在服務器端執行的,通常返回該客戶端的就是一個 HTMLJSP的 1.0規范的最后版本是1999年 912月又推出了 1.1規范。目前較新的是JSP1.2JSP2.0

3、規范的征求意見稿也已出臺。JSP頁面由 HTML代碼和嵌入其中的 Java代碼所組成。服務器在頁面被客戶端請求以后對這些 Java代碼進行處理,然后將生成的HTML頁面返回給客戶端的瀏覽器。Java Servlet 是 JSP的技術基礎,而且大型的 Web應用程序的開發需要 Java Servlet和 JSP配合才能完成。JSP具備了 Java技術的簡單易用,完全的面向對象,具有平臺無關性且安全可靠,主要面向因特網的所有特點。JSP技術的強勢中英文對照外文翻譯文獻(1)一次編寫,到處運行。在這一點上Java比 PHP更出色,除了系統之外,代碼不用做任何更改。(2)系統的多平臺支持。基本上可以在

4、所有平臺上的任意環境中開發,在任意環境中進行系統部署,在任意環境中擴展。相比 ASP/PHP的局限性是顯而易見的。(3)強大的可伸縮性。從只有一個小的Jar文件就可以運行 Servlet/JSP,到由多臺服務器進行集群和負載均衡,到多臺Application進行事務處理,消息處理,一臺服務器到無數臺服務器,Java顯示了一個巨大的生命力。(4)多樣化和功能強大的開發工具支持。這一點與 ASP很像,Java已經有了許多非常優秀的開發工具,而且許多可以免費得到,并且其中許多已經可以順利的運行于多種平臺之下。JSP技術的弱勢(1) 與 ASP一樣,Java的一些優勢正是它致命的問題所在。正是由于為了

5、跨平臺的功能,為了極度的伸縮能力,所以極大的增加了產品的復雜性。(2) Java的運行速度是用 class的內存比起用戶數量來說確實是“最低性能價格比”了。從另一方面,它還需要硬盤空間來儲存一系列的.java文件和.class文件,以及對應的版本文件。JSP六種內置對象:request, response, out, session, application, config, pagecontext, page,exception.該對象封裝了用戶提交的信息,通過調用該對象相應的方法可以獲取封裝的信息,即使用該對象可以獲取用戶提交信息。對客戶的請求做出動態的響應,向客戶端發送數據。1.什么是

6、session:session對象是一個 JSP內置對象,它在第一個 JSP頁面被裝載時自動創建,完成會話期管理。從一個客戶打開瀏覽器并連接到服務器開始,到客戶關閉瀏覽器離開這個服務器結束,被稱為一個會話。當一個客戶訪問一個服務器時,可能會在這個服務器的幾中英文對照外文翻譯文獻個頁面之間反復連接,反復刷新一個頁面,服務器應當通過某種辦法知道這是同一個客戶,這就需要 session對象。2session對象的 ID:當一個客戶首次訪問服務器上的一個JSP頁面時,JSP引擎產生一個 session對象,同時分配一個 String類型的 ID號,JSP引擎同時將這個 ID號發送到客戶端,存放在Coo

7、kie中,這樣session對象和客戶之間就建立了一一對應的關系。當客戶再訪問連接該服務器的其他頁面時,不再分配給客戶新的session對象,直到客戶關閉瀏覽器后,服務器端該客戶的 session對象才取消,并且和客戶的會話對應關系消失。當客戶重新打開瀏覽器再連接到該服務器時,服務器為該客戶再創建一個新的 session對象。服務器啟動后就產生了這個 application對象,當客戶再所訪問的網站的各個頁applicationsession不同的是,所有客戶的application對象都是同一個,即所有客戶共享這個內置的application對象。(1)public void setAttr

8、ibute(String key,Object obj): 將參數 Object指定的對象 obj添加到 application對象中,并為添加的對象指定一個索引關鍵字。(2)public Object getAttribute(String key): 獲取 application對象中含有關鍵字的對象。五out對象outout對象用于各種數據的輸出。六CookieCookie是 Web服務器保存在用戶硬盤上的一段文本。Cookie允許一個 Web站點在用戶的電腦上保存信息并且隨后再取回它。舉例來說,一個 Web站點可能會為每一個訪問者產生一個唯一的 ID,然后以Cookie文件的形式保存在

9、每個用戶的機器上。中英文對照外文翻譯文獻如果您使用IE瀏覽器訪問Web,您會看到所有保存在您的硬盤上的Cookie。它們最常存放的地方是:c:windowscookies(在Window2000中則是C:Documentsand Settings您的用戶名Cookies )Cookie是以“關鍵字key=值value“的格式來保存紀錄的.2CookieCookie對象的構造函數可以創建CookieCookie對象的構造函數有兩個字符串參數:Cookie名字和Cookie值。Cookie c=new Cookie(“username”,”john”);3 JSP中如果要將封裝好的Cookie對象

10、傳送到客戶端,使用response的addCookie()方法。4讀取保存到客戶端的Cookie,使用request對象的getCookies()方法,執行時將所有客戶端傳來的Cookie對象以數組的形式排列,如果要取出符合需要的Cookie對象,就需要循環比較數組內每個對象的關鍵字。Struts 是 ApacheASF Jakarta項目中的一個子項目,并在2004年3月成為ASF的頂級項目。它通過采用 JavaServlet/JSP JavaEEWeb應用的 Model-View-ControllerMVC設計模式的應用框架WebFramework,是MVC經典設計模式中的一個經典產品。在

11、 Java EE的Web應用發展的初期,除了使用 Servlet 技術以外,普遍是在JavaServer Pages (JSP)的源代碼中,采用 HTML 與 Java 代碼混合的方式進行開發。因為這兩種方式不可避免的要把表現與業務邏輯代碼混合在一起,都給前期開發與后期維護帶來巨大的復雜度。為了擺脫上述的約束與局限,把業務邏輯代碼從2000CraigMcClanahan 采用了 MVC 的設計模式開發Struts JAVA 的 WEB 應用框架。SQL Server關系數據庫簡介1SQLServer是由MicrosoftDBMS),它最初是由MicrosoftSybase和Ashton-Tat

12、e1988年推出了第一個OS/2版本。2、關系數據庫(RDBMS)管理系統功能:維護數據庫數據之間的關系;中英文對照外文翻譯文獻保證數據存儲的正確性;當出現系統故障的時候,將所有數據恢復到能夠保證一致行的某種狀態3、RDBMS:SQL Server,Oracle,DB/2,Sybase,Informix4、Non-RDBMS(File-based):Foxpro,Access企業版(Enterprise Edition)支持所有 SQL Server 2000的功能。該版本多用于大中型產品數據庫服務器,并且可以支持大型網站,企業(聯機事務處理)和大型數據倉庫系統OLAP(聯機分析處理)所要求的

13、性能。個人版(Personal Edition)。與因特網的集成:SQL Server 2000的數據庫引擎全面支持XML(Extensive Markup ,擴展標記語言),能使用戶很容易地將數據庫中的數據發布到 Web頁面上。可伸縮性與可用性:可跨越從運行 Windows 95/98的膝上型電腦到運行 Windows 2000的大型多處理器SQLServer2000企業版可以升級到最大 Web站點所需的性能級別。企業級數據庫功能:SQL Server 2000分布式查詢可以引用來自不同數據庫的數據,而且這些對于用戶來說是完全透明的;分布式數據庫將保證任何分布式數據更新時的完整性;復制可以使

14、我們能夠維護多個數據復本,這些用戶能夠自主地進行工作,然后再將所做的修改合并到發布數據庫;SQL Server 2000關系數據庫引擎能夠充分保護數據完整性,還可以將管理并發修改數據庫開銷到最小。易于安裝,部署和使用:SQL Server 2000由一系列的管理和開發工具組成,這些工具使得在多個站點上進行 SQL Server的安裝,部署,管理和使用變得更加容易。開發人員可以更加快速中英文對照外文翻譯文獻地交付 SQL Server應用程序,而且只需要進行最少的安裝和管理就可以實現這些應用程序。數據倉庫:數據倉庫是 SQL Server 2000中包含的用于分析取和分析匯總數據以進行聯機分析處

15、理的工具。這個功能只在 Oracle和其他更昂貴的 DBMS中才有。1.1.1 SQL Server 2000新特性全面擴展了 SQL Server 7.0的性能,可靠性和易用性。增加了一系列的功能,具體如下:在關系數據庫方面的增強圖形管理增強增強的聯合數據庫服務器1、企業管理器 2、服務管理器 3、查詢分析器 4、事件探查器5、導入和導出數據 6、服務器網絡使用工具 7、客戶端網絡使用工具 8、聯機幫助文檔企業管理器是基于一種新的被稱為微軟管理控制臺(Microsoft ManagementConsole)的公共服務器管理環境,它是SQLServer2000中最重要的一個管理工具。企業管理器

16、不僅能夠配置系統環境和管理 SQLServer,而且由于它能夠以層疊列表的形式來顯示所有的 SQL Server對象,因而所有 SQL Server對象的建立與管理都可以通過它來完成。1.2.2服務管理器(Service Manager)SQL Server服務管理器是在服務器端實際工作時最有用的實用程序,服務管理器用來啟動、暫停、繼續和停止數據庫服務器的實時服務,其提供的服務類型包括:SQL Server、SQL Server代理、Microsoft搜索和分布式事務協調器等。中英文對照外文翻譯文獻 2The introduceof JSP and SQL Server 2000JSP (Ja

17、vaServer Pages) is initiated by Sun Microsystems, Inc., withmany companies to participate in the establishment of a dynamic web pagetechnical standards.JSP technologysomewhat similar toASP technology, itis in the traditional HTML web page document (*. htm, *. html) to insertthe Java programming para

18、graph (Scriptlet) and JSP tag (tag), thus JSPdocuments (*. jsp). Using JSP development of the Web application iscross-platformthatcanrunonLinux,isalsoavailableforotheroperatingsystems. JSP technology to use the Java programming language prepared bythe category of XML tags and scriptlets, to produce

19、dynamic pages packageprocessing logic. Page also visit by tags and scriptlets exist in theservices sideof theresourcesof logic.JSPpage logic and web page designanddisplayseparation,supportreusablecomponent-baseddesign,Web-basedapplicationdevelopmentisrapidandeasy.WebserverinthefaceofvisitsJSP page r

20、equest, the first implementation of the procedures of, and thentogether with the results of the implementation of JSP documents in HTMLcodewiththereturntothecustomer.InserttheJavaprogrammingoperationof the database can be re-oriented websites, in order to achieve theestablishment of dynamic pages ne

21、eded to function.JSP and Java Servlet, is in the implementation of the server, usuallyreturned to the client is an HTML text, as long as the client browser willbe able to visit. JSP 1.0 specification of the final version is launchedin September 1999, December has introduced 1.1 specifications. At pr

22、esentrelatively new is JSP1.2 norms, JSP2.0 norms of the draft has also beenintroduced. JSP pages from HTML code and Java code embedded in one of thecomponents. The server was in the pages of client requests after the Javacode andthen willgenerate theHTML pagesto return tothe clientbrowser.JavaServl

23、etJSPisthetechnicalfoundationandlarge-scaleWebapplication中英文對照外文翻譯文獻developmentneedsofJavaServletandJSPsupporttocomplete.JSPwiththeJava technology easy to use, fully object-oriented, and aplatform-independentand secure, mainlyforall the characteristicsof theInternet.JSP technology strength(1) time t

24、o prepare, run everywhere. At this point Java better than PHP,in addition to systems, the code not to make any changes.(2) the multi-platform support. Basically on all platforms of anydevelopment environment, in any environment for deployment in anyenvironment in the expansion. Compared ASP / PHP li

25、mitations are obvious.(3) a strong scalability. From only a small Jar documents can run Servlet/ JSP, to the multiple servers clustering and load balancing, to multipleApplication for transaction processing, information processing, a serverto numerous servers, Java shows a tremendous Vitality.(4)div

26、ersificationandpowerfuldevelopmenttoolssupport.Thisissimilarto the ASP, Java already have many very good development tools, and manycanbefree,andmanyofthemhavebeenabletorunonavarietyofplatformsunder.(1) and the same ASP, Java is the advantage of some of its fatal problem.It is precisely because in o

27、rder to cross-platform functionality, in orderto extreme stretching capacity, greatly increasing the complexity of theproduct.(2)Javasspeedisclasstocompletethepermanentmemory,soinsomecasesby the use of memory compared to the number of users is indeed a minimumcost performance. On the other hand, it

28、also needs disk space to store aseriesof.Javadocumentsand.Class,aswellasthecorrespondingversionsof documents.JSP six built-in objects:中英文對照外文翻譯文獻request, response, out, session, application, config, pagecontext, page,exception.The object of the package of information submitted by users, bycalling th

29、e object corresponding way to access the information package,namely the use of the target users can access the information.2. Response object:The customers request dynamic response to the client sent the data.三. session object1. What is the session: session object is a built-in objects JSP, it in th

30、efirst JSP pages loaded automatically create, complete the conversation ofmanagement.From a customer to open a browser and connect to the server, to close thebrowser, leaving the end of this server, known as a conversation. When acustomer visits a server, the server may be a few pages link betweenre

31、peatedly, repeatedly refresh a page, the server should be through somekind ofway toknow thisis the sameclient, whichrequires sessionobject.2. session object ID: When a customers first visit to a server on the JSPpages, JSP engines produce a session object, and assigned a String type ofID number, JSP

32、 engine at the same time, the ID number sent to the client,stored in Cookie, this session objects, and customers on the establishmentof a one-to-one relationship. When a customer to connect to the server ofthe other pages, customers no longer allocated to the new session object,until, close your bro

33、wser, the client-server object to cancel the session,andtheconversation,andcustomerrelationshipdisappeared.Whenacustomerre-open the browser to connect to the server, the server for the customerto create a new session object.四. aplication target1. What is the application:中英文對照外文翻譯文獻Servershavelaunche

34、daftertheapplicationobject,whenacustomertovisitthe site between the various pages here, this application objects are thesame, untilthe serveris down.But with the session that allcustomers of the application objects are the same, that is, all customersshare this built-in application objects.(1) publi

35、c void setAttribute (String key, Object obj): Object specifiedparameters will be the object obj added to the application object, and toadd the subject of the designation of a keyword index.(2) publicObject getAttribute(String key): accessto application objectscontaining keywords for.out as a target

36、output flow, used to client output data. out targets forthe output data.CookieisstoredinWebserverontheusersharddrivesectionofthetext.Cookie allow a Web site on the users computer to store information on andthen get back to it.For example, a Web site may be generated for each visitor a unique ID, and

37、then to Cookie in the form of documents stored in each users machine.If you use IE browser to visit Web, you will see all stored on your harddrive on the Cookie. They are most often stored in places: c: windows cookies (in Window2000 is in the C: Documents and Settings your username Cookies)Cookie i

38、skeyword key= valuevalue to preserve the therecord.2. Targets the creation of a Cookie, Cookie object called the constructorcan create a Cookie. Cookie object constructor has two string parameters:Cookie Cookie name and value.Cookie c = new Cookie ( username, john);中英文對照外文翻譯文獻3. If the JSP in the pa

39、ckage good Cookie object to send to the client, theuse of the response addCookie () method.Format: response.addCookie (c)4.SavetoreadtheclientsCookie,theuseoftheobjectrequestgetCookies()methodwillbeimplementedinallclientcametoanarrayofCookieobjectsin the form of order, to meet the need to remove the

40、 Cookie object, it isnecessary to compare an array cycle Each target keywords.Apache Struts is an open-source web application framework fordeveloping Java EE web applications. It uses and extends the Java ServletAPI to encourage developers to adopt a model-view-controller (MVC)architecture. It was o

41、riginally created by Craig McClanahan and donated totheApacheFoundationinMay,2000.FormerlylocatedundertheApacheJakartaProject and known as Jakarta Struts, it became a top level Apache projectThe WebWork framework spun off from Apache Struts several years ago,aiming to offer enhancements and refineme

42、nts while retaining the samegeneral architecture of the original Struts framework. However, it wasannounced in December 2005 that Struts would re-merge with WebWork.A relational database, SQL Server1, by Microsoft SQL Server is the development and popularization ofrelational database system (DBMS),

43、which was originally by Microsoft, andAshtonSybaseTate-threecompaniesandjointdevelopment,launchedin1988,the first OS / 2 version.2 and relational database management system (RDBMS) function:Maintaining the relationship between database data,Ensure the correctness of the data storage,When a system fa

44、ult, all data recovery to ensure consistent done somecondition3, RDBMS: SQL Server, Oracle, DB / 2, Sybase Informix,4 and amplified RDBMS (File - based) : Foxpro, Access中英文對照外文翻譯文獻Second, SQL Server 2000 version1 and SQL Server 2000 common version:1)Enterprise Edition 2)Standard version3)Personal Ed

45、ition4)Developer Edition1.1 SQL Server featuresWith the integration of the Internet:SQLServer2000databaseenginecomprehensivesupportXMLLanguage,creatingtake(extensibleMarkupLanguage),thattheusercaneasilybedatabasedatareleased to the Web page.Scalability and usability:Can span from running Windows 95,

46、 98 / the laptop to run Windows 2000large-scale multiple processors etc. Various platforms. In addition, tojointlyServer,etc,thesupportindexviewthatSQLServer2000enterpriseedition can upgrade to the largest Web site desired performance level.Enterprise databases functions:SQL Server 2000 distributed

47、query can quote from different database data,and these are completely transparent to users, Distributed database willensure that any distributed data update integrity, Copy can enable us tomaintainmultipledataavailable,theusercanworkindependently,andthenwillbedonebymodifiedmergedintothedatabase,SQLS

48、erver2000relationaldatabase engine can fully protect data integrity, still can be modifieddatabase management concurrent cost to a minimum.Easy to install, deployment and use:SQLServer2000byaseriesofmanagementanddevelopmenttools,thesetoolsat multiple sites on SQL Server installation, deploy, manage and use moreeasily. Developers can more quickly deli

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論