2023年全國(guó)碩士研究生考試考研英語(yǔ)一試題真題(含答案詳解+作文范文)_第1頁(yè)
已閱讀1頁(yè),還剩13頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、<p>  畢業(yè)設(shè)計(jì)(論文)外文資料翻譯</p><p>  學(xué)院(系): 計(jì)算機(jī)科學(xué)與技術(shù) </p><p>  專 業(yè): 信息管理與信息系統(tǒng) </p><p>  姓 名: </p><p>

2、;  學(xué) 號(hào): </p><p>  外文出處: CHINA-USA Business Review </p><p>  附 件: 1.外文資料翻譯譯文;2.外文原文。 </p><p>  附件1:外文資料翻譯譯文

3、</p><p>  JSP 和SQL Server 2000相關(guān)介紹</p><p>  JSP(JavaServer Pages)是由Sun Microsystems公司倡導(dǎo)、許多公司參與一起建立的一種動(dòng)態(tài)網(wǎng)頁(yè)技術(shù)標(biāo)準(zhǔn)。JSP技術(shù)有點(diǎn)類似ASP技術(shù),它是在傳統(tǒng)的網(wǎng)頁(yè)HTML文(*.htm,*.html)中插入Java程序段(Scriptlet)和JSP標(biāo)記(tag),從而形成JSP文件

4、(*.jsp)。用JSP開發(fā)的Web應(yīng)用是跨平臺(tái)的,即能在Linux下運(yùn)行,也能在其他操作系統(tǒng)上運(yùn)行。JSP技術(shù)使用Java編程語(yǔ)言編寫類XML的tags和scriptlets,來(lái)封裝產(chǎn)生動(dòng)態(tài)網(wǎng)頁(yè)的處理邏輯。網(wǎng)頁(yè)還能通過(guò)tags和scriptlets訪問(wèn)存在于服務(wù)端的資源的應(yīng)用邏輯。JSP將網(wǎng)頁(yè)邏輯與網(wǎng)頁(yè)設(shè)計(jì)和顯示分離,支持可重用的基于組件的設(shè)計(jì),使基于Web的應(yīng)用程序的開發(fā)變得迅速和容易。Web服務(wù)器在遇到訪問(wèn)JSP網(wǎng)頁(yè)的請(qǐng)求時(shí),首先

5、執(zhí)行其中的程序段,然后將執(zhí)行結(jié)果連同JSP文件中的HTML代碼一起返回給客戶。插入的Java程序段可以操作數(shù)據(jù)庫(kù)、重新定向網(wǎng)頁(yè)等,以實(shí)現(xiàn)建立動(dòng)態(tài)網(wǎng)頁(yè)所需要的功能。 </p><p>  JSP與Java Servlet一樣,是在服務(wù)器端執(zhí)行的,通常返回該客戶端的就是一個(gè)HTML文本,因此客戶端只要有瀏覽器就能瀏覽。JSP的1.0規(guī)范的最后版本是1999年9月推出的,12月又推出了1.1規(guī)范。目前較新的是JSP1.

6、2規(guī)范,JSP2.0規(guī)范的征求意見稿也已出臺(tái)。JSP頁(yè)面由HTML代碼和嵌入其中的Java代碼所組成。服務(wù)器在頁(yè)面被客戶端請(qǐng)求以后對(duì)這些Java代碼進(jìn)行處理,然后將生成的HTML頁(yè)面返回給客戶端的瀏覽器。Java Servlet 是JSP的技術(shù)基礎(chǔ),而且大型的Web應(yīng)用程序的開發(fā)需要Java Servlet和JSP配合才能完成。JSP具備了Java技術(shù)的簡(jiǎn)單易用,完全的面向?qū)ο?,具有平臺(tái)無(wú)關(guān)性且安全可靠,主要面向因特網(wǎng)的所有特點(diǎn)。 &l

7、t;/p><p><b>  JSP技術(shù)的強(qiáng)勢(shì)</b></p><p> ?。?)一次編寫,到處運(yùn)行。在這一點(diǎn)上Java比PHP更出色,除了系統(tǒng)之外,代碼不用做任何更改。</p><p>  (2)系統(tǒng)的多平臺(tái)支持?;旧峡梢栽谒衅脚_(tái)上的任意環(huán)境中開發(fā),在任意環(huán)境中進(jìn)行系統(tǒng)部署,在任意環(huán)境中擴(kuò)展。相比ASP/PHP的局限性是顯而易見的。 <

8、/p><p> ?。?)強(qiáng)大的可伸縮性。從只有一個(gè)小的Jar文件就可以運(yùn)行Servlet/JSP,到由多臺(tái)服務(wù)器進(jìn)行集群和負(fù)載均衡,到多臺(tái)Application進(jìn)行事務(wù)處理,消息處理,一臺(tái)服務(wù)器到無(wú)數(shù)臺(tái)服務(wù)器,Java顯示了一個(gè)巨大的生命力。 </p><p> ?。?)多樣化和功能強(qiáng)大的開發(fā)工具支持。這一點(diǎn)與ASP很像,Java已經(jīng)有了許多非常優(yōu)秀的開發(fā)工具,而且許多可以免費(fèi)得到,并且其中許

9、多已經(jīng)可以順利的運(yùn)行于多種平臺(tái)之下。 </p><p><b>  JSP技術(shù)的弱勢(shì)</b></p><p>  (1) 與ASP一樣,Java的一些優(yōu)勢(shì)正是它致命的問(wèn)題所在。正是由于為了跨平臺(tái)的功能,為了極度的伸縮能力,所以極大的增加了產(chǎn)品的復(fù)雜性。 </p><p> ?。?) Java的運(yùn)行速度是用class常駐內(nèi)存來(lái)完成的,所以它在一些

10、情況下所使用的內(nèi)存比起用戶數(shù)量來(lái)說(shuō)確實(shí)是“最低性能價(jià)格比”了。從另一方面,它還需要硬盤空間來(lái)儲(chǔ)存一系列的.java文件和.class文件,以及對(duì)應(yīng)的版本文件。</p><p>  JSP六種內(nèi)置對(duì)象:</p><p>  request, response, out, session, application, config, pagecontext, page, exception.

11、</p><p>  一.request對(duì)象:</p><p>  該對(duì)象封裝了用戶提交的信息,通過(guò)調(diào)用該對(duì)象相應(yīng)的方法可以獲取封裝的信息,即使用該對(duì)象可以獲取用戶提交信息。</p><p>  二.response對(duì)象:</p><p>  對(duì)客戶的請(qǐng)求做出動(dòng)態(tài)的響應(yīng),向客戶端發(fā)送數(shù)據(jù)。</p><p>  三.se

12、ssion對(duì)象</p><p>  1.什么是session:session對(duì)象是一個(gè)JSP內(nèi)置對(duì)象,它在第一個(gè)JSP頁(yè)面被裝載時(shí)自動(dòng)創(chuàng)建,完成會(huì)話期管理。</p><p>  從一個(gè)客戶打開瀏覽器并連接到服務(wù)器開始,到客戶關(guān)閉瀏覽器離開這個(gè)服務(wù)器結(jié)束,被稱為一個(gè)會(huì)話。當(dāng)一個(gè)客戶訪問(wèn)一個(gè)服務(wù)器時(shí),可能會(huì)在這個(gè)服務(wù)器的幾個(gè)頁(yè)面之間反復(fù)連接,反復(fù)刷新一個(gè)頁(yè)面,服務(wù)器應(yīng)當(dāng)通過(guò)某種辦法知道這是同一

13、個(gè)客戶,這就需要session對(duì)象。</p><p>  2.session對(duì)象的ID:當(dāng)一個(gè)客戶首次訪問(wèn)服務(wù)器上的一個(gè)JSP頁(yè)面時(shí),JSP引擎產(chǎn)生一個(gè)session對(duì)象,同時(shí)分配一個(gè)String類型的ID號(hào),JSP引擎同時(shí)將這個(gè)ID號(hào)發(fā)送到客戶端,存放在Cookie中,這樣session對(duì)象和客戶之間就建立了一一對(duì)應(yīng)的關(guān)系。當(dāng)客戶再訪問(wèn)連接該服務(wù)器的其他頁(yè)面時(shí),不再分配給客戶新的session對(duì)象,直到客戶關(guān)閉

14、瀏覽器后,服務(wù)器端該客戶的session對(duì)象才取消,并且和客戶的會(huì)話對(duì)應(yīng)關(guān)系消失。當(dāng)客戶重新打開瀏覽器再連接到該服務(wù)器時(shí),服務(wù)器為該客戶再創(chuàng)建一個(gè)新的session對(duì)象。</p><p>  四.a(chǎn)plication對(duì)象</p><p>  1.什么是application:</p><p>  服務(wù)器啟動(dòng)后就產(chǎn)生了這個(gè)application對(duì)象,當(dāng)客戶再所訪問(wèn)的網(wǎng)

15、站的各個(gè)頁(yè)面之間瀏覽時(shí),這個(gè)application對(duì)象都是同一個(gè),直到服務(wù)器關(guān)閉。但是與session不同的是,所有客戶的application對(duì)象都是同一個(gè),即所有客戶共享這個(gè)內(nèi)置的application對(duì)象。</p><p>  2.a(chǎn)pplication對(duì)象常用方法:</p><p>  (1)public void setAttribute(String key,Object ob

16、j): 將參數(shù)Object指定的對(duì)象obj添加到application對(duì)象中,并為添加的對(duì)象指定一個(gè)索引關(guān)鍵字。</p><p>  (2)public Object getAttribute(String key): 獲取application對(duì)象中含有關(guān)鍵字的對(duì)象。</p><p><b>  五.out對(duì)象</b></p><p>  o

17、ut對(duì)象是一個(gè)輸出流,用來(lái)向客戶端輸出數(shù)據(jù)。out對(duì)象用于各種數(shù)據(jù)的輸出。</p><p><b>  六.Cookie</b></p><p>  1.什么是Cookie:</p><p>  Cookie是Web服務(wù)器保存在用戶硬盤上的一段文本。Cookie允許一個(gè)Web站點(diǎn)在用戶的電腦上保存信息并且隨后再取回它。</p>&

18、lt;p>  舉例來(lái)說(shuō),一個(gè)Web站點(diǎn)可能會(huì)為每一個(gè)訪問(wèn)者產(chǎn)生一個(gè)唯一的ID,然后以Cookie文件的形式保存在每個(gè)用戶的機(jī)器上。 </p><p>  如果您使用IE瀏覽器訪問(wèn)Web,您會(huì)看到所有保存在您的硬盤上的Cookie。它們最常存放的地方是:c:\windows\cookies(在Window2000中則是C:\Documents and Settings\您的用戶名\Cookies )</

19、p><p>  Cookie是以“關(guān)鍵字key=值value“的格式來(lái)保存紀(jì)錄的.</p><p>  2.創(chuàng)建一個(gè)Cookie對(duì)象,調(diào)用Cookie對(duì)象的構(gòu)造函數(shù)可以創(chuàng)建Cookie。Cookie對(duì)象的構(gòu)造函數(shù)有兩個(gè)字符串參數(shù):Cookie名字和Cookie值。</p><p>  Cookie c=new Cookie(“username”,”john”);<

20、/p><p>  3. JSP中如果要將封裝好的Cookie對(duì)象傳送到客戶端,使用response的addCookie()方法。</p><p>  格式:response.addCookie(c)</p><p>  4.讀取保存到客戶端的Cookie,使用request對(duì)象的getCookies()方法,執(zhí)行時(shí)將所有客戶端傳來(lái)的Cookie對(duì)象以數(shù)組的形式排列,如果

21、要取出符合需要的Cookie對(duì)象,就需要循環(huán)比較數(shù)組內(nèi)每個(gè)對(duì)象的關(guān)鍵字。 </p><p>  Struts 是 Apache軟件基金會(huì)(ASF)贊助的一個(gè)開源項(xiàng)目。它最初是 Jakarta項(xiàng)目中的一個(gè)子項(xiàng)目,并在2004年3月成為ASF的頂級(jí)項(xiàng)目。它通過(guò)采用 Java Servlet/JSP 技術(shù),實(shí)現(xiàn)了基于Java EE Web應(yīng)用的 Model-View-Controller〔MVC〕設(shè)計(jì)模式的應(yīng)用框架〔

22、Web Framework〕,是 MVC 經(jīng)典設(shè)計(jì)模式中的一個(gè)經(jīng)典產(chǎn)品。</p><p>  在 Java EE 的Web應(yīng)用發(fā)展的初期,除了使用 Servlet 技術(shù)以外,普遍是在 JavaServer Pages (JSP)的源代碼中,采用 HTML 與 Java 代碼混合的方式進(jìn)行開發(fā)。因?yàn)檫@兩種方式不可避免的要把表現(xiàn)與業(yè)務(wù)邏輯代碼混合在一起,都給前期開發(fā)與后期維護(hù)帶來(lái)巨大的復(fù)雜度。為了擺脫上述的約束與局限

23、,把業(yè)務(wù)邏輯代碼從表現(xiàn)層中清晰的分離出來(lái),2000年,Craig McClanahan 采用了 MVC 的設(shè)計(jì)模式開發(fā)Struts。后來(lái)該框架產(chǎn)品一度被認(rèn)為是最廣泛、最流行 JAVA 的 WEB 應(yīng)用框架。</p><p>  SQL Server關(guān)系數(shù)據(jù)庫(kù)簡(jiǎn)介1、SQL Server是由Microsoft開發(fā)和推廣的關(guān)系數(shù)據(jù)庫(kù)系統(tǒng)(DBMS),它最初是由Microsoft、Sybase和Ashton-Tate

24、三家公司共同開發(fā)的,并于1988年推出了第一個(gè)OS/2版本。2、關(guān)系數(shù)據(jù)庫(kù)(RDBMS)管理系統(tǒng)功能:》維護(hù)數(shù)據(jù)庫(kù)數(shù)據(jù)之間的關(guān)系;》保證數(shù)據(jù)存儲(chǔ)的正確性;》當(dāng)出現(xiàn)系統(tǒng)故障的時(shí)候,將所有數(shù)據(jù)恢復(fù)到能夠保證一致行的某種狀態(tài)3、RDBMS:SQL Server,Oracle,DB/2,Sybase,Informix4、Non-RDBMS(File-based):Foxpro,Access二、SQL Server 2000的版本

25、1、SQL Server 2000常見版本有:》企業(yè)版(Enterprise Edition)支持所有SQL Server 2000的功能。該版本多用于大中型產(chǎn)品數(shù)據(jù)庫(kù)服務(wù)器,并且可以支持大型網(wǎng)站,企業(yè)OLTP(聯(lián)機(jī)事務(wù)處理)和大型數(shù)據(jù)倉(cāng)庫(kù)系統(tǒng)OLAP(聯(lián)機(jī)分析處理)所要求的性能?!窐?biāo)準(zhǔn)版(Standard Edition)》個(gè)人版(Personal Editi</p><p>  附件2:外文原文(復(fù)印

26、件)</p><p>  The introduce of JSP and SQL Server 2000 </p><p>  JSP (JavaServer Pages) is initiated by Sun Microsystems, Inc., with many companies to participate in the establishment of a dynamic

27、 web page technical standards. JSP technology somewhat similar to ASP technology, it is in the traditional HTML web page document (*. htm, *. html) to insert the Java programming paragraph (Scriptlet) and JSP tag (tag),

28、thus JSP documents (*. jsp). Using JSP development of the Web application is cross-platform that can run on Linux, is also available for other operat</p><p>  JSP and Java Servlet, is in the implementation o

29、f the server, usually returned to the client is an HTML text, as long as the client browser will be able to visit. JSP 1.0 specification of the final version is launched in September 1999, December has introduced 1.1 spe

30、cifications. At present relatively new is JSP1.2 norms, JSP2.0 norms of the draft has also been introduced. JSP pages from HTML code and Java code embedded in one of the components. The server was in the pages of client

31、requests aft</p><p>  JSP technology strength </p><p>  (1) time to prepare, run everywhere. At this point Java better than PHP, in addition to systems, the code not to make any changes. </p&

32、gt;<p>  (2) the multi-platform support. Basically on all platforms of any development environment, in any environment for deployment in any environment in the expansion. Compared ASP / PHP limitations are obvious

33、. </p><p>  (3) a strong scalability. From only a small Jar documents can run Servlet / JSP, to the multiple servers clustering and load balancing, to multiple Application for transaction processing, informa

34、tion processing, a server to numerous servers, Java shows a tremendous Vitality. </p><p>  (4) diversification and powerful development tools support. This is similar to the ASP, Java already have many very

35、good development tools, and many can be free, and many of them have been able to run on a variety of platforms under. </p><p>  JSP technology vulnerable </p><p>  (1) and the same ASP, Java is

36、the advantage of some of its fatal problem. It is precisely because in order to cross-platform functionality, in order to extreme stretching capacity, greatly increasing the complexity of the product. </p><p&g

37、t;  (2) Java's speed is class to complete the permanent memory, so in some cases by the use of memory compared to the number of users is indeed a "minimum cost performance." On the other hand, it also needs

38、 disk space to store a series of. Java documents and. Class, as well as the corresponding versions of documents. </p><p>  JSP six built-in objects: </p><p>  request, response, out, session, ap

39、plication, config, pagecontext, page, exception. </p><p>  1. Request for: </p><p>  The object of the package of information submitted by users, by calling the object corresponding way to acces

40、s the information package, namely the use of the target users can access the information. </p><p>  2. Response object: </p><p>  The customer's request dynamic response to the client sent t

41、he data. </p><p>  三. session object </p><p>  1. What is the session: session object is a built-in objects JSP, it in the first JSP pages loaded automatically create, complete the conversation

42、of management. </p><p>  From a customer to open a browser and connect to the server, to close the browser, leaving the end of this server, known as a conversation. When a customer visits a server, the serve

43、r may be a few pages link between repeatedly, repeatedly refresh a page, the server should be through some kind of way to know this is the same client, which requires session object. </p><p>  2. session obj

44、ect ID: When a customer's first visit to a server on the JSP pages, JSP engines produce a session object, and assigned a String type of ID number, JSP engine at the same time, the ID number sent to the client, stored

45、 in Cookie, this session objects, and customers on the establishment of a one-to-one relationship. When a customer to connect to the server of the other pages, customers no longer allocated to the new session object, unt

46、il, close your browser, the client-server object t</p><p>  四. aplication target </p><p>  1. What is the application: </p><p>  Servers have launched after the application object,

47、when a customer to visit the site between the various pages here, this application objects are the same, until the server is down. But with the session difference is that all customers of the application objects are the

48、same, that is, all customers share this built-in application objects. </p><p>  2. application objects commonly used methods: </p><p>  (1) public void setAttribute (String key, Object obj): Obj

49、ect specified parameters will be the object obj added to the application object, and to add the subject of the designation of a keyword index. </p><p>  (2) public Object getAttribute (String key): access to

50、 application objects containing keywords for. </p><p>  五. out targets </p><p>  out as a target output flow, used to client output data. out targets for the output data. </p><p>  

51、六. Cookie </p><p>  1. What is Cookie: </p><p>  Cookie is stored in Web server on the user's hard drive section of the text. Cookie allow a Web site on the user's computer to store info

52、rmation on and then get back to it. </p><p>  For example, a Web site may be generated for each visitor a unique ID, and then to Cookie in the form of documents stored in each user's machine. </p>

53、<p>  If you use IE browser to visit Web, you will see all stored on your hard drive on the Cookie. They are most often stored in places: c: \ windows \ cookies (in Window2000 is in the C: \ Documents and Settings

54、\ your user name \ Cookies) </p><p>  Cookie is "keyword key = value value" to preserve the format of the record. </p><p>  2. Targets the creation of a Cookie, Cookie object called th

55、e constructor can create a Cookie. Cookie object constructor has two string parameters: Cookie Cookie name and value. </p><p>  Cookie c = new Cookie ( "username", "john"); </p>&l

56、t;p>  3. If the JSP in the package good Cookie object to send to the client, the use of the response addCookie () method. </p><p>  Format: response.addCookie (c) </p><p>  4. Save to read th

57、e client's Cookie, the use of the object request getCookies () method will be implemented in all client came to an array of Cookie objects in the form of order, to meet the need to remove the Cookie object, it is nec

58、essary to compare an array cycle Each target keywords.</p><p>  Apache Struts is an open-source web application framework for developing Java EE web applications. It uses and extends the Java Servlet API to

59、encourage developers to adopt a model-view-controller (MVC) architecture. It was originally created by Craig McClanahan and donated to the Apache Foundation in May, 2000. Formerly located under the Apache Jakarta Project

60、 and known as Jakarta Struts, it became a top level Apache project </p><p>  The WebWork framework spun off from Apache Struts several years ago, aiming to offer enhancements and refinements while retaining

61、the same general architecture of the original Struts framework. However, it was announced in December 2005 that Struts would re-merge with WebWork.</p><p>  A relational database, SQL Server1, by Microsoft

62、SQL Server is the development and popularization of relational database system (DBMS), which was originally by Microsoft, and Ashton Sybase Tate - three companies and joint development, launched in 1988, the first OS / 2

63、 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 fault, all data reco

64、very to ensure consistent</p><p>  3)Personal Edition 4)Developer Edition </p><p>  1.1 SQL Server featuresWith the integration of the Internet:SQL Server 2000 database engine comprehensiv

65、e support XML Language, creating take (extensible Markup Language), that the user can easily be database data released to the Web page."Scalability and usability:Can span from running Windows 95, 98 / the laptop t

溫馨提示

  • 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ù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫(kù)僅提供信息存儲(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ì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論