第一篇:網(wǎng)上購物系統(tǒng)外文翻譯
重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
重慶三峽學院 畢業(yè)設計(論文)
文獻綜述和外文翻譯
設計(論文)題目
網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
學
院:
計算機科學與工程學院
專
業(yè):
軟件工程
年
級:
2008級
姓
名:
肖偉
指導教師:
朱丙麗
完成日期:
2011 年 12 月 29 日 重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
文獻綜述
摘要:Servlet程序在服務器端運行,動態(tài)地生成Web頁面與傳統(tǒng)的CGI和許多其他類似CGI的技術(shù)相比,Java Servlet具有更高的效率,更容易使用,功能更強大,具有更好的可移植性,更節(jié)省投資。
關(guān)鍵字:JSP技術(shù),Servlet,HTTP服務 1.1Servlet的功能
Servlets是運行在Web或應用服務器上的Java程序,它是一個中間層,負責連接來自Web瀏覽器或其他HTTP客戶程序的請求和HTTP服務器上的數(shù)據(jù)庫或應用程序。Servlet的工作是執(zhí)行西門的任務,如圖1.1所示。
圖1.1Web中間件的作用
(1)讀取客戶發(fā)送的顯式數(shù)據(jù)。
最終用戶一般在頁面的HTML表單中輸入這些數(shù)據(jù)。然而,數(shù)據(jù)還有可能來自applet或定制的HTTP客戶程序。
(2)讀取由瀏覽器發(fā)送的隱式請求數(shù)據(jù)。
圖1.1中顯示了一條從客戶端到Web服務器的單箭頭,但實際上從客戶端傳送到Web服務器的數(shù)據(jù)有兩種,它們分別為用戶在表單中輸入的顯式數(shù)據(jù),以及后臺的HTTP信息。兩種數(shù)據(jù)都很重要。HTTP信息包括cookie、瀏覽器所能識別的媒體類型和壓縮模式等。
(3)生成結(jié)果。
這個過程可能需要訪問數(shù)據(jù)庫、執(zhí)行RMI或EJB調(diào)用、調(diào)用Web服務,或者直接計算得出對應的響應。實際的數(shù)據(jù)可能存儲在關(guān)系型數(shù)據(jù)庫中。該數(shù)據(jù)庫可能不理解HTTP,或者不能返回HTML形式的結(jié)果,所有Web瀏覽器不能直接與數(shù)據(jù)庫進行會話。即使它能夠做到這一點,為了安全上的考慮,我們也不希望讓它這么做。對應大多數(shù)其他應用重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
程序,也存在類似的問題。因此,我們需要Web中間層從HTTP流中提取輸入數(shù)據(jù),與應用程序會話,并將結(jié)果嵌入到文檔中。(4)向客戶發(fā)送顯式數(shù)據(jù)(即文檔)。
這個文檔可以用各種格式發(fā)送,包括文本(HTML或XML),二進制(GIF圖),甚至可以式建立在其他底層格式之上的壓縮格式,如gzip。但是,到目前為止,HTML式最常用的格式,故而servelt和JSP的重要任務之一就式將結(jié)果包裝到HTML中。(5)發(fā)送隱式的HTTP響應數(shù)據(jù)。
圖1.1中顯示了一條從Web中間層到客戶端的單箭頭。但是,實際發(fā)送的數(shù)據(jù)有兩種:文檔本身,以及后臺的HTTP信息。同樣,兩種數(shù)據(jù)對開發(fā)來說都式至關(guān)重要的。HTTP響應數(shù)據(jù)的發(fā)送過程涉及告知瀏覽器或其他客戶程序所返回文檔的類型(如HTML),設置cookie和緩存參數(shù),以及其他類似的任務。1.2動態(tài)構(gòu)建網(wǎng)頁的原因
預先建立的文檔可以滿足客戶的許多請求,服務器無需調(diào)用servlet就可以處理這些請求。然而,許多情況下靜態(tài)的結(jié)果不能滿足要求,我們需要針對每個請求生成一個頁面。實時構(gòu)建頁面的理由有很多種:
1、網(wǎng)頁基于客戶發(fā)送的數(shù)據(jù)。
例如,搜索引擎生成的頁面,以及在線商店的訂單確認頁面,都要針對特定的用戶請求而產(chǎn)生。在沒有讀取到用戶提交的數(shù)據(jù)之前,我們不知道應該顯示什么。要記住,用戶提交兩種類型的數(shù)據(jù):顯示(即HTML表單的數(shù)據(jù))和隱式(即HTTP請求的報頭)。兩種輸入都可用來構(gòu)建輸出頁面。基于cookie值針對具體用戶構(gòu)建頁面的情況尤其普遍。
2、頁面由頻繁改變的數(shù)據(jù)導出。
如果頁面需要根據(jù)每個具體的請求做出相應的改變,當然需要在請求發(fā)生時構(gòu)建響應。但是,如果頁面周期性地改變,我們可以用兩種方式來處理它:周期性地在服務器上構(gòu)建新的頁面(和客戶請求無關(guān)),或者僅僅在用戶請求該頁面時再構(gòu)建。具體應該采用哪種方式要根據(jù)具體情況而定,但后一種方式常常更為方便,因為它只需簡單地等待用戶的請求。例如,天氣預報或新聞網(wǎng)站可能會動態(tài)地構(gòu)建頁面,也有可能會返回之前構(gòu)建的頁面(如果它還是最新的話)。
重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
3、頁面中使用了來自公司數(shù)據(jù)庫或其他數(shù)據(jù)庫斷數(shù)據(jù)源的信息。
如果數(shù)據(jù)存儲在數(shù)據(jù)庫中,那么,即使客戶端使用動態(tài)Web內(nèi)容,比如applet,我們依舊需要執(zhí)行服務器端處理。想象以下,如果一個搜索引擎網(wǎng)站完全使用applet,那么用戶將會看到:“正在下載50TB的applet,請等待!”。顯然,這樣很愚蠢;這種情況下,我們需要與數(shù)據(jù)庫進行會話。從客戶端到Web層再到數(shù)據(jù)庫(三層結(jié)構(gòu)),要比從applet直接到數(shù)據(jù)庫(二層結(jié)構(gòu))更靈活,也更安全,而性能上的損失很少甚至沒有。畢竟數(shù)據(jù)庫調(diào)用通常是對速度影響最大的步驟,因而,經(jīng)過中間層可以執(zhí)行高速緩存和連接共享。
理論上講,servelt并非只用于處理HTTP請求的Web服務器或應用服務器,它同樣可以用于其他類型的服務器。例如,servlet能夠嵌入到FTP或郵件服務器中,擴展他們的功能。而且,用于會話啟動協(xié)議服務器的servlet API最近已經(jīng)被標準化(參見http://jcp.org/en/jsr/detail?id=116)。但在實踐中,servelt的這種用法尚不流行,在此,我們只論述HTTP Servlet。1.3 Servlet相對于“傳統(tǒng)”CGI的優(yōu)點
和傳統(tǒng)CGI及許多類CGI技術(shù)相比,Java servelt效率更高、更易用、更強大、更容易移植、更安全、也更廉價。
1、效率
應用傳統(tǒng)的CGI,針對每個HTTP請求都用啟動一個新的進程。如果CGI程序自身相對比較簡短,那么啟動進程的開銷會占用大部分執(zhí)行時間。而使用servelt,Java虛擬機會一直運行,并用輕量級的Java線程處理每個請求,而非重量級的操作系統(tǒng)進程。類似地,應用傳統(tǒng)的CGI技術(shù),如果存在對同一CGI程序的N個請求,那么CGI程序的代碼會載入內(nèi)存N次。同樣的情況,如果使用servlet則啟動N個線程,單僅僅載入servlet類的單一副本。這種方式減少了服務器的內(nèi)存需求,通過實例化更少的對象從而節(jié)省了時間。最后,當CGI程序結(jié)束對請求的處理之后,程序結(jié)束。這種方式難以緩存計算結(jié)果,保持數(shù)據(jù)庫連接打開,或是執(zhí)行依靠持續(xù)性數(shù)據(jù)的其他優(yōu)化。然而,servelt會一直停留在內(nèi)存中(即使請求處理完畢),因而可以直接存儲客戶請求之間的任意復雜數(shù)據(jù)。
2、便利
Servelt提供大量的基礎構(gòu)造,可以自動分析和解碼HTML的表單數(shù)據(jù),讀取和設置 重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
HTTP報頭,處理cookie,跟蹤會話,以及其他次類高級功能。而在CGI中,大部分工作都需要我們資金完成。另外,如果您已經(jīng)了解了Java編程語言,為什么還有學校Perl呢?您已經(jīng)承認應用Java技術(shù)編寫的代碼要比Visual Basic,VBScript或C++編寫的代碼更可靠,且更易重用,為什么還有倒退回去選擇那些語言來開發(fā)服務器端的程序呢?
3、強大
Servlet支持常規(guī)CGI難以實現(xiàn)或根本不能實現(xiàn)的幾項功能。Servlet能夠直接于Web服務器對話,而常規(guī)的CGI程序做不到這一點,至少在不使用服務器專有API的情況下是這樣。例如,與Web服務器的通信使得講相對URL轉(zhuǎn)換成具體的路徑名變得更為容易。多個servelt還可以共享數(shù)據(jù),從而易于實現(xiàn)數(shù)據(jù)庫連接共享和類似的資源共享優(yōu)化。Servelt還能維護請求之間的信息,使得諸如會話跟蹤和計算結(jié)果緩存等技術(shù)變得更為簡單。
4、可移植性
Servelt使用Java編程語言,并且遵循標準的API。所有主要的Web服務器。實際上都直接或通過插件支持servlet。因此。為Macromedia JRun編寫的servlet,可以不經(jīng)過任何修改地在Apache Tomcat,Microsoft Internet Information Server,IBM WebSphere。iPlanet Enterprise Server。Oracle9i AS 或者StrNine WebStar上運行。他們是java2平臺企業(yè)版的一部分,所以對servlet的支持越來越普遍。
5、廉價
對于開發(fā)用的網(wǎng)站、低容量或中等容量網(wǎng)站的部署,有大量免費或極為廉價的Web服務器可供選擇。因此,通過使用servelt和jsp,我們可以從免費或廉價的服務器開始,在項目獲得初步成功后,在移植到更高性能或高級管理工具的昂貴的服務器上。這與其他CGI方案形成鮮明的對比,這些CGI方案在初期都需要為購買專利軟件包投入大量的資金。
價格和可移植性在某種程度上是相互關(guān)聯(lián)的。例如,Marty記錄了所有通過電子郵件向他發(fā)送問題的讀者的所在國。印度接近列表的頂端,可能僅次于美國。Marty曾在馬尼拉講授過jsp和servlet培訓課程,那兒對servelt和jsp技術(shù)抱很大的興趣。
那么,為什么印度和菲律賓都對這項技術(shù)著呢感興趣呢?我們推測答案可能分兩部分。首先,這兩個國家都擁有大量訓練有素的軟件開發(fā)人員。其次,這兩個國家的貨幣
重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
對美元的匯率都極為不利。因此,從美國公司那里購買專用Web服務器會消耗掉項目的大部分前期資金。
但是,使用servlet 和JSP,他們能夠從免費的服務器開始:Apache Tomcat。項目取得成功之后,他們可以轉(zhuǎn)移到性能更高、管理更容易,但需要付費的服務器。他們的servelt和jsp不需要重寫編寫。如果他們的項目變得更龐大,他們或許希望轉(zhuǎn)移到分布式環(huán)境。沒有問題:他們可以轉(zhuǎn)而使用Macromedia JRun Professional,該服務器支持分布式應用。同樣,他們的servelt和jsp沒有任何部分需要重寫。如果項目變得極為龐大,錯綜復雜,他們或許希望使用Enterprise JavaBeans來封裝他們的商業(yè)邏輯。因此,他們可以切換到BEA WebLogic或Oracle9i AS。同樣,不需要對servlet和jsp做出更改。最后,如果他們的項目變得更龐大,他們或許將他從Linux轉(zhuǎn)移到運行IBM WebSphere的IBM大型機上。他們還是不需要做出任何更改。
6、安全
傳統(tǒng)CGI程序中主要的漏洞來源之一就是,CGI程序常常由通過的操作系統(tǒng)外殼來執(zhí)行。因此,CGI程序必須仔細地過濾掉那些可能被外殼特殊處理的字符,如反引導和分號。實現(xiàn)這項預防措施的難度可能超出我們的想象,在廣泛應用的CGI庫中,不斷發(fā)現(xiàn)由這類問題引發(fā)的弱點。
問題的第二個來源是,一些CGI程序用不自動檢查數(shù)組和字符串邊界的語言編寫而成。例如,在C和C++中,可以分配一個100個元素的數(shù)組,然后向第999個“元素“寫入數(shù)據(jù)——實際上是程序內(nèi)存的隨機部分,這完全合法。因而,如果程序員忘記執(zhí)行這項檢查,就會將系統(tǒng)暴露在蓄意或偶然的緩沖區(qū)溢出攻擊之下。
Servelt不存在這些問題。即使servelt執(zhí)行系統(tǒng)調(diào)用激活本地操作系統(tǒng)上的程序,它也不會用到外殼來完成這項任務。當然,數(shù)組邊界的檢查以及其他內(nèi)存包含特性是java編程語言的核心部分。
7、主流
雖然存在許多很好的技術(shù),但是,如果提供商助支持他們,或開發(fā)人員不知道如何使用這些技術(shù),那么它們的優(yōu)點又如何體現(xiàn)呢?servelt和jsp技術(shù)得到服務器提供商的廣泛支持,包括Apache,Oracle,IBM,Sybase,BEA,Maromedia,Causho,Sun/iPlanet,New Atlanta,ATG,F(xiàn)ujitsu,Lutris,Silverstream,World Wide Web Consortinrm,以及其他服務器。存在幾種低廉的插件,通過應用這些插件,Microsoft IIS和Zeus 重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
也同樣支持servlet和jsp技術(shù),它們運行在Windows,Unix/Linus,MacOS,VMS,和IBM大型機操作系統(tǒng)之上。它們用在航空業(yè)、電子商務、在線銀行、web搜索引擎、門戶、大型金融網(wǎng)站、以及成百上千您日常光顧的其他網(wǎng)站。
當然,僅僅是流行并不能證明技術(shù)的優(yōu)越性。很多泛美的例子。但我們的立場是:服務器端Java本非一項新的、為經(jīng)證實的技術(shù)。
An Overview of Servlet and JSP Technology Abstract: Servlet program running in the server-side, dynamically generated Web page with the traditional CGI and many other similar compared to CGI technology, Java Servlet with a more efficient, easier to use, more powerful and has better portability, more savings to invest.Key words: JSP Technology, Servlet, HTTP server
1.1 A Servlet's Job Servlets are Java programs that run on Web or application servers, acting as a middle layer between requests coming from Web browsers or other HTTP clients and databases or applications on the HTTP server.Their job is to perform the following tasks, as illustrated in Figure 1-1.Figure 1-1 1.Read the explicit data sent by the client.The end user normally enters this data in an HTML form on a Web page.However, the data could also come from an applet or a custom HTTP client program.2.Read the implicit HTTP request data sent by the browser.Figure 1-1 shows a single arrow going from the client to the Web server(the layer where servlets and JSP execute), but there are really two varieties of data: the explicit data that the end user enters in a form and the behind-the-scenes HTTP information.Both varieties are critical.The HTTP information includes cookies, information about media types and compression schemes the browser understands, and so on.3.Generate the results.This process may require talking to a database, executing an RMI or EJB call, invoking a Web service, or computing the response directly.Your real data may be in a relational database.Fine.But your database probably doesn't speak HTTP or return results in HTML, so the Web browser can't talk directly to the database.6 重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
Even if it could, for security reasons, you probably would not want it to.The same argument applies to most other applications.You need the Web middle layer to extract the results inside a document.4.Send the explicit data(i.e., the document)to the client.This document can be sent in a variety of formats, including text(HTML or XML), binary(GIF images), or even a compressed format like gzip that is layered on top of some other underlying format.But, HTML is by far the most common format, so an important servlet/JSP task is to wrap the results inside of HTML.5.Send the implicit HTTP response data.Figure 1-1 shows a single arrow going from the Web middle layer(the servlet or JSP page)to the client.But, there are really two varieties of data sent: the document itself and the behind-the-scenes HTTP information.Again, both varieties are critical to effective development.Sending HTTP response data involves telling the browser or other client what type of document is being returned(e.g., HTML), setting cookies and caching parameters, and other such tasks.1.2 Why Build Web Pages Dynamically? many client requests can be satisfied by prebuilt documents, and the server would handle these requests without invoking servlets.In many cases, however, a static result is not sufficient, and a page needs to be generated for each request.There are a number of reasons why Web pages need to be built on-the-fly: 1. The Web page is based on data sent by the client.For instance, the results page from search engines and order-confirmation pages at online stores are specific to particular user requests.You don't know what to display until you read the data that the user submits.Just remember that the user submits two kinds of data: explicit(i.e., HTML form data)and implicit(i.e., HTTP request headers).Either kind of input can be used to build the output page.In particular, it is quite common to build a user-specific page based on a cookie value.2.The Web page is derived from data that changes frequently.If the page changes for every request, then you certainly need to build the response at request time.If it changes only periodically, however, you could do it two ways: you could periodically build a new Web page on the server(independently of client requests), or you could wait and only build the page when the user requests it.The right approach depends on the situation, but sometimes it is more convenient to do the latter: wait for the user request.For example, a weather report or news headlines site might build the pages dynamically, perhaps returning a previously built page if that page is still up to date.重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
3.The Web page uses information from corporate databases or other server-side sources.If the information is in a database, you need server-side processing even if the client is using dynamic Web content such as an applet.Imagine using an applet by itself for a search engine site: “Downloading 50 terabyte applet, please wait!” Obviously, that is silly;you need to talk to the database.Going from the client to the Web tier to the database(a three-tier approach)instead of from an applet directly to a database(a two-tier approach)provides increased flexibility and security with little or no performance penalty.After all, the database call is usually the rate-limiting step, so going through the Web server does not slow things down.In fact, a three-tier approach is often faster because the middle tier can perform caching and connection pooling.In principle, servlets are not restricted to Web or application servers that handle HTTP requests but can be used for other types of servers as well.For example, servlets could be embedded in FTP or mail servers to extend their functionality.And, a servlet API for SIP(Session Initiation Protocol)servers was recently standardized(see http://jcp.org/en/jsr/detail?id=116).In practice, however, this use of servlets has not caught on, and we'll only be discussing HTTP servlets.1.3 The Advantages of Servlets Over “Traditional” CGI Java servlets are more efficient, easier to use, more powerful, more portable, safer, and cheaper than traditional CGI and many alternative CGI-like technologies.1.Efficient With traditional CGI, a new process is started for each HTTP request.If the CGI program itself is relatively short, the overhead of starting the process can dominate the execution time.With servlets, the Java virtual machine stays running and handles each request with a lightweight Java thread, not a heavyweight operating system process.Similarly, in traditional CGI, if there are N requests to the same CGI program, the code for the CGI program is loaded into memory N times.With servlets, however, there would be N threads, but only a single copy of the servlet class would be loaded.This approach reduces server memory requirements and saves time by instantiating fewer objects.Finally, when a CGI program finishes handling a request, the program terminates.This approach makes it difficult to cache computations, keep database connections open, and perform other optimizations that rely on persistent data.Servlets, however, remain in memory even after they complete a response, so it is straightforward to store arbitrarily complex data between client requests.2.Convenient Servlets have an extensive infrastructure for automatically parsing and
重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
decoding HTML form data, reading and setting HTTP headers, handling cookies, tracking sessions, and many other such high-level utilities.In CGI, you have to do much of this yourself.Besides, if you already know the Java programming language, why learn Perl too? You're already convinced that Java technology makes for more reliable and reusable code than does Visual Basic, VBScript, or C++.Why go back to those languages for server-side programming? 3.Powerful Servlets support several capabilities that are difficult or impossible to accomplish with regular CGI.Servlets can talk directly to the Web server, whereas regular CGI programs cannot, at least not without using a server-specific API.Communicating with the Web server makes it easier to translate relative URLs into concrete path names, for instance.Multiple servlets can also share data, making it easy to implement database connection pooling and similar resource-sharing optimizations.Servlets can also maintain information from request to request, simplifying techniques like session tracking and caching of previous computations.4.Portable Servlets are written in the Java programming language and follow a standard API.Servlets are supported directly or by a plugin on virtually every major Web server.Consequently, servlets written for, say, Macromedia JRun can run virtually unchanged on Apache Tomcat, Microsoft Internet Information Server(with a separate plugin), IBM WebSphere, iPlanet Enterprise Server, Oracle9i AS, or StarNine WebStar.They are part of the Java 2 Platform, Enterprise Edition(J2EE;see http://java.sun.com/j2ee/), so industry support for servlets is becoming even more pervasive.5.Inexpensive A number of free or very inexpensive Web servers are good for development use or deployment of low-or medium-volume Web sites.Thus, with servlets and JSP you can start with a free or inexpensive server and migrate to more expensive servers with high-performance capabilities or advanced administration utilities only after your project meets initial success.This is in contrast to many of the other CGI alternatives, which require a significant initial investment for the purchase of a proprietary package.Price and portability are somewhat connected.For example, Marty tries to keep track of the countries of readers that send him questions by email.India was near the top of the list, probably #2 behind the U.S.Marty also taught one of his JSP and servlet training courses(see http://courses.coreservlets.com/)in Manila, and there was great interest in servlet and JSP technology there.Now, why are India and the Philippines both so interested? We surmise that the answer is twofold.First, both countries have large pools of well-educated software developers.Second, both countries have(or had, at that time)highly 重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
unfavorable currency exchange rates against the U.S.dollar.So, buying a special-purpose Web server from a U.S.company consumed a large part of early project funds.But, with servlets and JSP, they could start with a free server: Apache Tomcat(either standalone, embedded in the regular Apache Web server, or embedded in Microsoft IIS).Once the project starts to become successful, they could move to a server like Caucho Resin that had higher performance and easier administration but that is not free.But none of their servlets or JSP pages have to be rewritten.If their project becomes even larger, they might want to move to a distributed(clustered)environment.No problem: they could move to Macromedia JRun Professional, which supports distributed applications(Web farms).Again, none of their servlets or JSP pages have to be rewritten.If the project becomes quite large and complex, they might want to use Enterprise JavaBeans(EJB)to encapsulate their business logic.So, they might switch to BEA WebLogic or Oracle9i AS.Again, none of their servlets or JSP pages have to be rewritten.Finally, if their project becomes even bigger, they might move it off of their Linux box and onto an IBM mainframe running IBM WebSphere.But once again, none of their servlets or JSP pages have to be rewritten.6.Secure One of the main sources of vulnerabilities in traditional CGI stems from the fact that the programs are often executed by general-purpose operating system shells.So, the CGI programmer must be careful to filter out characters such as backquotes and semicolons that are treated specially by the shell.Implementing this precaution is harder than one might think, and weaknesses stemming from this problem are constantly being uncovered in widely used CGI libraries.A second source of problems is the fact that some CGI programs are processed by languages that do not automatically check array or string bounds.For example, in C and C++ it is perfectly legal to allocate a 100-element array and then write into the 999th “element,” which is really some random part of program memory.So, programmers who forget to perform this check open up their system to deliberate or accidental buffer overflow attacks.Servlets suffer from neither of these problems.Even if a servlet executes a system call(e.g., with Runtime.exec or JNI)to invoke a program on the local operating system, it does not use a shell to do so.And, of course, array bounds checking and other memory protection features are a central part of the Java programming language.7.Mainstream There are a lot of good technologies out there.But if vendors don't support them and developers don't know how to use them, what good are they? Servlet and JSP technology is supported by servers from Apache, Oracle, IBM, Sybase, BEA,10 重慶三峽學院畢業(yè)設計外文翻譯[肖偉]-網(wǎng)上購物系統(tǒng)設計與實現(xiàn)
Macromedia, Caucho, Sun/iPlanet, New Atlanta, ATG, Fujitsu, Lutris, Silverstream, the World Wide Web Consortium(W3C), and many others.Several low-cost plugins add support to Microsoft IIS and Zeus as well.They run on Windows, Unix/Linux, MacOS, VMS, and IBM mainframe operating systems.They are the single most popular application of the Java programming language.They are arguably the most popular choice for developing medium to large Web applications.They are used by the airline industry(most United Airlines and Delta Airlines Web sites), e-commerce(ofoto.com), online banking(First USA Bank, Banco Popular de Puerto Rico), Web search engines/portals(excite.com), large financial sites(American Century Investments), and hundreds of other sites that you visit every day.Of course, popularity alone is no proof of good technology.Numerous counter-examples abound.But our point is that you are not experimenting with a new and unproven technology when you work with server-side Java.
第二篇:畢業(yè)設計網(wǎng)上選課系統(tǒng)ASP外文翻譯
論文題目姓名學號班級年級專業(yè)學院指導教師完成時間
外文翻譯
(一)網(wǎng)上選課系統(tǒng)
軟件工程
軟件學院
2014年 5 月13日
: : : : : : : : :
東華理工大學畢業(yè)設計(外文翻譯)
英文原文
英文原文
The Active Server Pages(ASP)is a server to carry the script plait writes the environment, using it can create to set up with circulate the development, alternant Web server application procedure.Using the ASP cans combine the page of HTML, script order to create to set up the alternant the page of Web with the module of ActiveX with the mighty and applied procedure in function that according to Web.The applied procedure in ASP develops very easily with modify.1.The working principle of ASP
When the Web site into the ASP feature, will take place the following things:(1)the user browser address bar to enter a URL, the default page of the expansion are.Asp.(2)the browser request to the server.(3)the server engine running ASP procedures.(4)ASP document in accordance with the order from top to bottom starting with the implementation of the script orders, the implementation of HTML page content.(5)pages of information sent to the browser.2.ASP operating environment Asp need to run in under the PWS or IIS.PWS or IIS services in windows98 or windows2000 on the fringe of the CD-ROM, can use the “Add / Remove Programs” in the “Add / Remove windows components” to install.Asp and the general need to access databases or a combination of SQL Server database, made a powerful process.ASP can run the web server software
Windows2000 default installation is IIS5.0(internet information server), and the default installation of windows xp is IIS5.1, windows 2003 default installation of IIS6.0.PWS(personal web server)running windows98 environment in a simple personal Web server.3.ASP and the meaning of ASP(Application Service Provider, application software rental service providers)refers “through the Internet to provide application software rental services industry”, refers to the application software industry as the mainstay, and through one-to-many network Transmission services, such service-based business transactions to be leased by the way, in a more cost-effective manner has the right to use the software, and also because the industry centralized management and greatly reduce the cost of maintaining enterprises.1 東華理工大學畢業(yè)設計(外文翻譯)
英文原文
Basically, ASP is a “software services, Internet services,” and “outsourcing of information services and network integration” and “access of products, access products,” such as the three major characteristics, can even be seen as ISP(Internet Service Provider)and ITS(Information Technology Service)combination.ASP is the English Application Service Provider, the standard Chinese translation is “application service provider”, is defined as commercial or individual customer management applications to provide solutions for companies or enterprises.ASP Chaozuo recently by the media is very fiery, the IT industry is not facing a pile of technical terms it is very difficult to clarify terminology ASP content, the paper tried to use simple language to the broad masses of readers opened the mysterious veil of ASP, IT Top of the ASP industry areas have some basic knowledge.4.Origin of ASP
The research to ASP mode and ASP enterprise's origin can proceed with two respects , one to in terms of business and technology , is it carry on research to come from ASP developing history that business commit;Another one is studies the origins of ASP enterprises and evolution course at present in terms of organization's development.Whether stand up synthetically above-mentioned developing stage, to put it briefly, present ASP history and development path of provider can simple to describe as: The first, developed from the past ISP, rounded the infrastructure and communication function, cooperate with software manufacturer, increase the business scope, develop into the present IDC(the data centre of Internet);
The second,the past ISV(independent software provider)and VAR(the trader that resells value-added service), at Internet age , changed the marketing way in the past , would rely mainly on sale of the software product to change direction to rely mainly on the fact that right to use is leased in the past, bale from physics carrier encapsulation way change direction and long-range operation way main fact now, through the cooperation with network operator , realize the transition to ASP;
The third,IT service departments and traditional advisory companies of traditional large-scale organization, at the foundation known deeply in Internet , depend on long-term experience, is it carry on systematic design and implementation of scheme for other customer to begin, through establish in with trader who operates network and alliance relation between the application software manufacturer, realize the ASP provider that appears in the capacity of system integration trader.5.The developing history and classification of ASP
Seen from the present, ASP is as emerging and proposing formally it is only a thing from the end of 1998 to the beginning of 1999 of a kind of mode.And until from the end of 1999 to the beginning of 2000 to a great extent, ASP field relevant東華理工大學畢業(yè)設計(外文翻譯)
英文原文
outstanding behaviors at the capital market of Company just cause people's extensive concern.In fact speaking from the intension and essence of ASP mode, it is not the brand-new things, but the mode that had once had, has been given the new vitality at Internet age.During this festival, we will review the course that ASP produce development and develop, in order to help the essence of better deep understanding ASP.At the end, we will concentrate on introducing the situation which enterprises divide from different standards in ASP field at present.The HTML plait writes the personnel if you are a simple method that a HTML plait writes the personnel, you will discover the script of ASP providing to create to have diplomatic relation with each other page.If you once want that collect the data from the form of HTML, or use the name personalization HTML document of the customer, or according to the different characteristic in different usage of the browser, you will discover ASP providing an outstanding solution.Before, to think that collect the data from the form of HTML, have to study a plait distance language to create to set up a CGI application procedure.Now, you only some simple instruction into arrive in your HTML document, can collect from the form the data combine proceeding analysis.You need not study the complete plait distance language again or edit and translate the procedure to create to have diplomatic relation alone with each other page.Along with control to use the ASP continuously with the phonetic technique in script, you can create to set up the more complicated script.For the ASP, you can then conveniently usage ActiveX module to carry out the complicated mission, link the database for example with saving with inspectional information.If you have controlled a script language, such as VBScript, JavaScript or PERL, and you have understood the method that use the ASP.As long as installed to match the standard cowgirl in the script of ActiveX script engine, can use in the page of ASP an any a script language.Does the ASP take the Microsoft? Visual Basic? Scripting Edition(VBScript)with Microsoft? Script? Of script engine, like this you can start the editor script immediately.PERL, REXX with Python ActiveX script engine can from the third square develops the personnel acquires.The Web develops the personnel if you have controlled a plait distance language, such as Visual Basic, you will discover the ASP creates a very vivid method that set up the Web application procedure quickly.Pass to face to increase in the HTML the script order any, you can create the HTML that set up the applied procedure connects.Pass to create to set up own the module of ActiveX, can will apply the business in the procedure logic seal to 東華理工大學畢業(yè)設計(外文翻譯)
英文原文
pack and can adjust from the script, other module or from the other procedure the mold piece that use.The usage ASP proceeds the calculating Web can convert into the visible benefits, it can make the supplier of Web provide the alternant business application but not only is to announce the contents.For example, the travel agency can compare the announcement aviation schedule makes out more;Using the script of ASP can let the customer inspect the current service, comparison expenses and prepare to book seats.Include too can lower in the Windows NT Option Microsoft in the pack Transaction Server(MTS)on the server complexity of constructing the procedure with expenses.The MTS can resolve to develop those confidentialities strong, can ratings of and the dependable Web applies the complexity problem of the procedure.6.Active Server Pages model The browser requests from the server of Web.Hour of asp document, the script of ASP starts circulating.Then the server of Web adjusts to use the ASP, the ASP reads completely the document of the claim, carry out all scripts order any, combining to deliver the page of Web to browser.Because script is on the server but is not at the customer to carry the movement, deliver the page of Web on the browser is on the Web server born.Combining to deliver the standard HTML to browser.Because only the result that there is script returns the browser, so the server carries the not easy replication in script.The customer cans not see to create to set up them at script order that the page that view.We introduce the Basic form of the database language known as SQL, a language that allows us to query and manipulate data on computerized relational database systems.SQL has been the lingua franca for RDBMS since the early 1980s, and it is of fundamental importance for many of the concepts presented in this text.The SQL language is currently in transition from the relational form(the ANSI SQL – 92 standard)to a newer object-relational form(ANSI SQL-99, which was released in 1999).SQL-99 should be thought of as extending SQL-92, not changing any of the earlier valid language.Usually, the basic SQL we define matches most closely the ANSI SQL standards basic subsets, called Entry SQL-92 and core SQL-99 that are commonly implemented;our touchstone in defining basic SQL is to provide a syntax that is fully available on most of the major RDBMS products.東華理工大學畢業(yè)設計(外文翻譯)
英文原文
We begin with an overview of SQL capabilities, and then we explain something about the multiple SQL standards and dialects and how we will deal with these in our presentation.We will learn how to pose comparable queries in SQL, using a form known as the Select statement.As we will see, the SQL select statement offers more flexibility in a number of ways than relational algebra for posing queries.However, there is no fundamental improvement in power, nothing that could not be achieved in relational algebra , given a few well-considered extensions.For this reason, experience with relational algebra gives us a good idea of what can be accomplished in SQL.At the same time, SQL and relational algebra have quite different conceptual models in a number of respects, and the insight drawn from familiarity with the relational algebra approach may enhance your understanding of SQL capabilities.The most important new feature you will encounter with SQL is the ability to pose queries interactively in a computerized environment.The SQL select statement is more complicated and difficult to master than the relatively simple relational algebra, but you should never feel list or uncertain as long as you have access to computer facilities where a few experiments can clear up uncertainties about SQL use.The interactive SQL environment discussed in the current chapter allows you to type a query on a monitor screen and get an immediate answer.Such interactive queries are sometimes called ad box queries.This term refers to the fact that an SQL select statement is meant to be composed all at once in a few type written lines and not be dependent on any prior interaction in a user session.The feature of not being dependent on prior interaction is also down as non-procedurality.SQL differs in this way even from relational algebra, where a prior alias statement might be needed in order to represent a product of a table with itself.The difference between SQL and procedural languages such as java or c is profound: you do not need to write a program to try out an SQL query, you just have to type the relatively short, self-contained text of the query and submit it.Of course, an SQL query can be rather complex.A limited part of this full form, know as a sub-query, is defined recursively, and the full select statement form has one added clause.You should not feel intimidated by the complexity of the select statement, however.The fact that a select statement is non-procedural means that it has a lot in common with a menu driven application, where a user is expected to fill in some set of choices from a menu and then press the enter key to execute the menu 東華理工大學畢業(yè)設計(外文翻譯)
英文原文
choices all at once.The various clauses of the select statement correspond to menu choices: you will occasionally need all these clauses, but on not expect to use all of them every time you pose a query.Observed reliability depends on the context in which the system s used.As discussed already, the system environment cannot be specified in advance nor can the system designers place restrictions on that environment for operational systems.Different systems in an environment may react to problems in unpredictable ways, thus affecting the reliability of all of these systems.There for, even when the system has been integrated, it may be difficult to make accurate measurements of its reliability.7.Visual Basic Database Access prospects With the recent Web application software and the rapid development of the existing data stored in diverse forms, Visual Basic Database Access Solutions faces such as rapid extraction enterprises located in the internal and external business information with the multiple challenges.To this end Microsoft, a new database access strategy “unified data access”(UniversalDataAccess)strategy.“Unified data access” to provide high-performance access, including relational and non-relational data in a variety of sources, provide independent in the development of language development tools and the simple programming interface, these technologies makes enterprise integration of multiple data sources, better choice of development tools, application software, operating platforms, and will establish a maintenance easy solution possible.東華理工大學畢業(yè)設計(外文翻譯)
漢語翻譯
漢語翻譯
Active Server Pages(ASP)是服務器端腳本編寫環(huán)境,使用它可以創(chuàng)建和運行動態(tài)、交互的 Web 服務器應用程序。使用 ASP 可以組合 HTML 頁、腳本命令和 ActiveX 組件以創(chuàng)建交互的 Web 頁和基于 Web 的功能強大的應用程序。ASP 應用程序很容易開發(fā)和修改。1.ASP的工作原理
當在Web站點中融入ASP功能后,將發(fā)生以下事情:
(1)用戶向瀏覽器地址欄輸入網(wǎng)址,默認頁面的擴展名是.asp;
(2)瀏覽器向服務器發(fā)出請求;
(3)服務器引擎開始運行ASP程序;
(4)ASP文件按照從上到下的順序開始處理,執(zhí)行腳本命令,執(zhí)行HTML頁面內(nèi)容;
(5)頁面信息發(fā)送到瀏覽器;
2.ASP的運行環(huán)境
ASP需要運行在PWS或IIS下。PWS或IIS服務在windows98或windows2000的光盤上附帶著,可以通過“添加/刪除程序”中的“添加/刪除windows組件”來安裝。
一般asp需與access數(shù)據(jù)庫或SQL Server數(shù)據(jù)庫結(jié)合使用,編出功能強大的程序。能夠運行ASP的web服務器軟件:
Windows2000默認安裝的是IIS5.0(internet information server),而windows XP默認安裝的是IIS5.1,windows 2003默認安裝的IIS6.0。
PWS(personal web server)運行在windows98環(huán)境下的簡單個人網(wǎng)頁服務器。3.ASP的意義與特性
ASP(Application Service Provider,應用軟體租賃服務提供者)是指“透過網(wǎng)路以租賃方式提供應用軟體服務的業(yè)者”,即業(yè)者以應用軟體為主體,透過網(wǎng)路一對多地傳遞服務,這種以服務為主的交易模式促使企業(yè)可藉由租賃的方式,以更符合成本效益的方式擁有軟體的使用權(quán),并且亦能因為業(yè)者集中式的管理而大幅降低企業(yè)維護的成本。
基本上,ASP即具有“軟體服務化,服務網(wǎng)路化”,“資訊委外服務與網(wǎng)路結(jié)合”與“產(chǎn)品通路化,通路產(chǎn)品化”等三大特性,甚至可以被視為是ISP(Internet Service Provider)與ITS(Information Technology Service)的結(jié)合。
ASP的英文是Application Service Provider,中文的標準翻譯就是“應用服務提供商”,是指為商業(yè)或者個人客戶提供管理應用解決方案的公司或者企業(yè)。最近ASP被媒體炒作的十分火熱,不是IT行業(yè)的人面對一堆技術(shù)名詞專業(yè)術(shù)語很 東華理工大學畢業(yè)設計(外文翻譯)
漢語翻譯
難弄清楚ASP的內(nèi)容,本文試圖用淺顯的語言來為廣大的讀者揭開ASP神秘的面紗,對于IT行業(yè)的大熱門ASP領域有一些基本的認識。
4.ASP的起源
對于ASP模式和ASP企業(yè)起源的研究可以從兩個方面入手,一個是從業(yè)務和技術(shù)的角度,從ASP業(yè)務構(gòu)成的發(fā)展歷史來進行研究;另一個是從組織機構(gòu)發(fā)展的角度,來研究目前ASP企業(yè)的由來和演化過程。
將上述發(fā)展階段綜合起來,簡單的說,目前的ASP提供商的歷史和發(fā)展道路可以簡單的描述為:
第一類,從過去的ISP發(fā)展起來,圍繞基礎設施和通訊功能,與軟件廠商合作,增加業(yè)務范圍,發(fā)展到現(xiàn)在的IDC(互聯(lián)網(wǎng)數(shù)據(jù)中心);
第二類,過去的ISV(獨立軟件提供商)和VAR(增值服務轉(zhuǎn)售商),在互聯(lián)網(wǎng)時代,改變過去的營銷方式,將過去以軟件產(chǎn)品的出售為主轉(zhuǎn)向以使用權(quán)租賃為主,從物理載體的打包封裝方式轉(zhuǎn)向現(xiàn)在在線和遠程運行方式為主,通過與網(wǎng)絡運營商的合作,實現(xiàn)向ASP的轉(zhuǎn)型;
第三類,傳統(tǒng)的大型組織的IT服務部門和傳統(tǒng)的咨詢公司,在對于互聯(lián)網(wǎng)的深刻認識的基礎上,依靠長期的經(jīng)驗,開始為其他客戶進行系統(tǒng)方案的設計和實施,通過建立在與網(wǎng)絡運行商和應用軟件制造商之間的聯(lián)盟關(guān)系,實現(xiàn)以系統(tǒng)集成商身份出現(xiàn)的ASP提供商。5.ASP的發(fā)展歷史與分類
從目前來看,ASP作為一種模式的正式誕生和提出只是在1998年底到1999年初之間的事情。而很大程度上直到1999年末到2000年初,ASP領域相關(guān)公司在資本市場上的突出表現(xiàn)才引起了人們的廣泛關(guān)注。實際上從ASP模式的內(nèi)涵和本質(zhì)上講,并不是全新的事物,而是曾經(jīng)有過的模式,在互聯(lián)網(wǎng)時代被賦予了新的生命力。在本節(jié)中,我們將回顧ASP產(chǎn)生發(fā)展演變的過程,以幫助更好的深入理解ASP的本質(zhì)。在最后,我們將集中介紹目前ASP領域內(nèi)企業(yè)從不同標準進行劃分的情況。
HTML 編寫人員 如果您是位 HTML 編寫人員,您將發(fā)現(xiàn) ASP 腳本提供了創(chuàng)建交互頁的簡便方法。如果您曾想從 HTML 表格中收集數(shù)據(jù),或用顧客的姓名個人化 HTML 文件,或根據(jù)瀏覽器的不同使用不同的特性,您會發(fā)現(xiàn) ASP 提供了一個出色的解決方案。以前,要想從 HTML 表格中收集數(shù)據(jù),就不得不學習一門編程語言來創(chuàng)建一個 CGI 應用程序。現(xiàn)在,您只要將一些簡單的指令嵌入到您的 HTML 文件中,就可以從表格中收集數(shù)據(jù)并進行分析。您再不必學習完整的編程語言或者單獨編譯程序來創(chuàng)建交互頁。東華理工大學畢業(yè)設計(外文翻譯)
漢語翻譯
隨著不斷掌握使用 ASP 和腳本語言的技巧,您可以創(chuàng)建更復雜的腳本。對于 ASP,您可以便捷地使用 ActiveX 組件來執(zhí)行復雜的任務,比如連接數(shù)據(jù)庫以存儲和檢索信息。
如果您已經(jīng)掌握一門腳本語言,如 VBScript、JavaScript 或 PERL,而且您已經(jīng)了解使用 ASP 的方法。只要安裝了符合 ActiveX 腳本標準的相應腳本引擎,就可以在 ASP 頁中使用任何一種腳本語言。ASP 帶有 Microsoft? Visual Basic? Scripting Edition(VBScript)和 Microsoft? Script? 的腳本引擎,這樣您可以立即開始編輯腳本。PERL、REXX 和 Python 的 ActiveX 腳本引擎可以從第三方開發(fā)人員處獲得。Web 開發(fā)人員 如果您已經(jīng)掌握了一門編程語言,如 Visual Basic,您將發(fā)現(xiàn) ASP 是快速創(chuàng)建 Web 應用程序的一個非常靈活的方法。通過向 HTML 中添加腳本命令,您能夠創(chuàng)建應用程序的 HTML 接口。通過創(chuàng)建自己的 ActiveX 組件,可以將應用程序中的商業(yè)邏輯封裝到能夠從腳本、其他組件或從其他程序中調(diào)用的模塊。
使用 ASP 進行計算的 Web 可轉(zhuǎn)化為有形的利益,它使 Web 供應商能夠提供交互的商業(yè)應用而不僅僅是發(fā)布內(nèi)容。例如,旅行社能夠比公布航空時刻表做得更多;用 ASP 腳本可以讓客戶察看現(xiàn)有的航班、比較費用并預定座位。
包含在 Windows NT Option pack 中的 Microsoft Transaction Server(MTS)可以降低在服務器上構(gòu)造程序的復雜性和費用。TS 可以解決開發(fā)那些保密性強的、可分級的
以及可靠的 Web 應用程序的復雜性問題。6.Active Server Pages模型
瀏覽器從 Web 服務器上請求.asp 文件時,然后 Web ASP 腳本開始運行。服務器調(diào)用 ASP,執(zhí)行所有腳本命令,并將 Web 頁ASP 全面讀取請求的文件,傳送給瀏覽器。
由于腳本在服務器上而不是在客戶端運行,傳送到瀏覽器上的 Web 頁是在 Web 服務器上生成的。所以不必擔心瀏覽器能否處理腳本:Web 服務器已經(jīng)完成了所有腳本的處理,并將標準的 HTML 傳輸?shù)綖g覽器。由于只有腳本的結(jié)果返回到瀏覽器,所以服務器端腳本不易復制。用戶看不到創(chuàng)建他們正在瀏覽的頁的腳本命令。
我們將介紹著名數(shù)據(jù)庫語言的SQL的基本形式。SQL是允許我們查詢和操作關(guān)于計算機化的關(guān)系數(shù)據(jù)庫系統(tǒng)的語言。從80 年代初期,SQL就一直是關(guān)系數(shù)據(jù)庫管理系統(tǒng)的語言,而且它是有著重要的意義的在對許多概念中,都在本文 東華理工大學畢業(yè)設計(外文翻譯)
漢語翻譯
里提到。當前,SQL語言是從關(guān)系形式(ANSI SQL-92 標準)轉(zhuǎn)向一個新的對象關(guān)系形式(ANSI SLQ-99,1999 被發(fā)布)。SQL-99 是SQL-92的延伸,它不改變所有早期版本的優(yōu)秀的語言。通常,我們嚴格定義的基本SQL與ANSI SQL 標準和基礎子集十分類似,分別被認為就是ENTRY SQL-92 和CORE SQL-99。我們也介紹了ENTRY SQL-92、CORE SQL-99之外一些廣泛實現(xiàn)的特性。在定義基本的SQL中,我們的試金石是將提供一種支持大多RDBMS 接口的語法。
首先,我們總的研究SQL的特性,然后對SQL的多種形式標準和產(chǎn)品語言以及我們將如何具體地處理這些標準和產(chǎn)品語言進行分析解釋。
我們知道了怎樣完成關(guān)系代數(shù)來回應對查詢的數(shù)據(jù)庫信息。這將讓我們看到,在編寫查詢語句時SQL中的SELECT在很多方面都比關(guān)系代數(shù)強大。但是,二者在性能上相比較,SQL在本質(zhì)上并沒有明顯的改進。對那些周密的擴展語法來說,沒有關(guān)系代數(shù)所不能實現(xiàn)的。所以,關(guān)系代數(shù)查詢方面的經(jīng)驗就能成為SQL查詢的很好的借鑒。同時在許多方面,SQL語句和關(guān)系代數(shù)概念模型又有著相當大的差異,而可以通過熟悉、理解關(guān)系代數(shù)增強對SQL的理解。
最重要的SQL特性是它擁有在計算機輸出的條件下能夠相互地構(gòu)造查詢的能力。SQL的SELECT語句比簡單的關(guān)系代數(shù)更難,但只要能夠上機實踐,只需幾個典型實驗就收回你的懷疑。我們所談論的交互式環(huán)境是你在電腦上一輸入一個查詢語句并且立即執(zhí)行,就可以看到結(jié)果。此情況說明了這樣一個事實,一個SQL 的SELECT語句是在打入一些輸入行之后立即形成的,并且對一個用戶來說該語句與前面的任何交互操作都沒有關(guān)系。這種不依賴于用戶會話互相通信操作的性質(zhì)也被稱作非過程性。在這方面SQL也與關(guān)系代數(shù)不同,因為在關(guān)系代數(shù)中為了表示一個表與自身的笛卡兒積,在表前面可能需要定義表別名。SQL與比如JAVA或C之類的語言之間的差別十分巨大的:你不需要為了實現(xiàn)一個SQL查詢的功能而編寫一個程序,你只需要量輸入較短的、獨立的查詢語句,然后運行就可以了。
當然,SQL查詢可能會復雜。為此,我們列出了SELECT語句的完整形式。取出這個形式的一個部分的查詢被稱為子查詢,對它的定義是遞歸的,完整的SELECT語句形式只有一個子句。無論如何,你不應恐懼復雜的SQL語句。在使用菜單的應SELECT語句的非過程性說明了它與使用菜單的應用十分相似。用中,用戶需要從菜單中填寫一組數(shù)據(jù),然后按下回車來對它們立即執(zhí)行。但并不是所有SELECT語句的各種子句對于菜單選項有時也會需要所有的子句,的子句在每次查詢的時候都用上。東華理工大學畢業(yè)設計(外文翻譯)
漢語翻譯
觀察可靠性應考慮系統(tǒng)使用環(huán)境。依照已經(jīng)討論的內(nèi)容,系統(tǒng)環(huán)境無法預先被描述,系統(tǒng)設計者也不可能對系統(tǒng)工作環(huán)境做過多限制。不同的系統(tǒng)對相同環(huán)境中的同樣問題還可能有無法預料的反應,所有這些都影響系統(tǒng)的可靠性。因此,即使在系統(tǒng)被集成之后,它的可靠性也是難以精確測量的。7.Visual Basic訪問數(shù)據(jù)庫的前景:
近來隨著Web應用軟件的迅速發(fā)展和現(xiàn)有數(shù)據(jù)存儲形式的多種多樣,Visual Basic訪問數(shù)據(jù)庫的解決方案面臨諸如快速提取分布于企業(yè)內(nèi)部和外部有用商業(yè)信息等的多種挑戰(zhàn)。為此Microsoft提出一種新的數(shù)據(jù)庫訪問策略,即“統(tǒng)一數(shù)據(jù)訪問”(Universal Data Access)的策略。“統(tǒng)一數(shù)據(jù)訪問”提供了高性能的存取包括關(guān)系型和非關(guān)系型在內(nèi)的多種數(shù)據(jù)源,提供獨立于開發(fā)工具和開發(fā)語言的簡單的編程接口,這些技術(shù)使得企業(yè)集成多種數(shù)據(jù)源、選擇更好的開發(fā)工具、應用軟件、操作平臺、建立容易維護的解決方案成為可能。
第三篇:網(wǎng)上購物系統(tǒng)報告
網(wǎng)上購物系統(tǒng)UML實驗報告
實驗目的: 1.2.3.4.掌握用例圖的涵義和內(nèi)容 掌握用例圖的繪制方法 掌握用例圖的使用范圍
理解活動圖及狀態(tài)圖表示界面遷徙的方法。
實驗內(nèi)容:
有如下案例:
某網(wǎng)絡購物系統(tǒng),這次開發(fā)的軟件項目是一個網(wǎng)上購物系統(tǒng)。使用此系統(tǒng)的顧客通過互聯(lián)網(wǎng)進行網(wǎng)上購物;使用此系統(tǒng)的管理員通過互聯(lián)網(wǎng)進行系統(tǒng)的管理。這個系統(tǒng)的主要功能如下。
? 顧客能夠按照商品類別,關(guān)鍵字等信息對商品進行查詢,取得商品概要信息,并能進一步查看商品詳細信息。? 顧客能夠注冊及登陸,能夠添加商品到購物車,也能修改購物車中商品,并能夠進行結(jié)賬。結(jié)賬時,顧客可以選擇多種結(jié)賬方式。? 顧客可以查看及修改自己的訂單(在系統(tǒng)發(fā)貨前)。
? 管理員能夠維護業(yè)務數(shù)據(jù),包括商品,訂單,會員數(shù)據(jù)等。? 該系統(tǒng)與財務系統(tǒng)交互,更新訂單付款狀態(tài)。
? 該系統(tǒng)也與庫存系統(tǒng)以及物流系統(tǒng)(確定訂單配送狀態(tài))交互。
畫出該案例用例圖,詳細書寫其中至少2個主要用例的用例文本,畫出主要界面原型,并用狀態(tài)圖表示界面之間的遷徙。
將上述用例分析結(jié)果形成完成的用例模型文檔。
實驗步驟: 用例分析:
本系統(tǒng)共有三類用戶:
普通用戶是指沒有登陸權(quán)限(主要指網(wǎng)絡用戶),以匿名用戶的身份訪問系統(tǒng)網(wǎng)站。此類用戶主要有瀏覽系統(tǒng)信息、查看商品信息,注冊成為會員。把本網(wǎng)站設為首頁,添加到收藏夾,聯(lián)系開發(fā)人,查看交款方式,退換貨原則,配送范圍,交易條款,保密協(xié)議等操作。瀏覽的內(nèi)容包括:商品信息、商品分類信息。
網(wǎng)絡購物系統(tǒng)實驗報告
會員:這類用戶擁有普通用戶的所有權(quán)限;普通用戶可以注冊成為會員,并根據(jù)會員ID和密碼登陸系統(tǒng),登陸之后可以對更改自己的信息但會員ID做為數(shù)據(jù)庫表主鍵不能修改。會員登陸后可以查看商品信息,查看各種分類商品信息,將商品添加到購物車中。修改購物車中商品數(shù)量,或是刪除某些不想要的商品。
系統(tǒng)管理員:系統(tǒng)管理員主要負責管理著系統(tǒng)后臺信息;主要有訂單管理,商品管理,會員管理,留言管理和系統(tǒng)管理。訂單管理有未確認訂單和已確認訂單管理,未付款訂單和已付款訂單管理,未發(fā)貨和已發(fā)貨訂單管理,未歸檔和已歸檔訂單管理。商品管理主要有商品添加和商品管理,商品類別添加和商品類別管理。會員管理主要有添加管理員和管理管理員,管理會員。物流系統(tǒng)主要有支付方式添加和管理,配送方式添加和管理,配送地點添加和管理。系統(tǒng)管理主要是上傳管理。
因此,本系統(tǒng)主要功能是對商品進行管理規(guī)劃,方便會員購買。
前臺模塊功能有:商品信息查看、會員注冊、會員登錄、會員信息修改、購物車管理、購物留言。
后臺模塊功能有:商品管理、訂單管理、會員管理、管理員管理、留言管理
網(wǎng)絡購物系統(tǒng)實驗報告
一、系統(tǒng)總體用例圖
二、分層用例
2.1 添加購物車用例
用例名稱:添加購物車 主要參與者:顧客
前置條件:
顧客已登錄,擁有一臺聯(lián)網(wǎng)的電腦
主成功場景:
顧客登陸購物網(wǎng)站
按關(guān)鍵字查找商品,系統(tǒng)返回幾項結(jié)果
用戶點擊所選商品
系統(tǒng)返回商品詳細信息
顧客添加商品到購物車
系統(tǒng)返回購物車信息
后置條件:
購物車有更新
用例圖:
網(wǎng)絡購物系統(tǒng)實驗報告
系統(tǒng)順序圖:
網(wǎng)絡購物系統(tǒng)實驗報告
交互圖之順序圖:
2.2 一次交易過程用例
主要參與者:顧客
主成功場景:
1.顧客登陸系統(tǒng)
2.顧客按關(guān)鍵字查詢商品
3.系統(tǒng)顯示商品的信息
4.顧客將商品加入購物車
顧客重復2到4步直到結(jié)束
5.系統(tǒng)生成訂單并顯示訂單信息
6.顧客選擇支結(jié)帳式
7.顧客確認訂單進行結(jié)帳
8.系統(tǒng)記錄銷售信息、并將銷售信息和支付信息發(fā)送到財務系統(tǒng)(進行訂單
處理)、庫存系統(tǒng)(更新庫存)和物流系統(tǒng)(確認訂單配送狀態(tài))
擴展
a.管理員可以隨時對商品、訂單、會員等數(shù)據(jù)進行操作
b.系統(tǒng)在任意時刻失敗
管理員重啟系統(tǒng)
1a.用戶名無效或密碼錯誤
重新輸入或注冊為新會員
2a.無相應的商品
1.系統(tǒng)提示錯誤并提示重新輸入商品信息
2.顧客重新輸入或退出系統(tǒng)
網(wǎng)絡購物系統(tǒng)實驗報告
3a.當按關(guān)鍵字查詢到多個商品時
1.沒有顧客想要的商品或商品缺貨
2.重新查找或退出
4a.添加購物車失敗
1.系統(tǒng)提示顧客為登陸
2.顧客登陸系統(tǒng)
3.操作購物車
1a.顧客修改購物車信息或刪除購物車中的商品
6a.銀行匯款
1.輸入顧客銀行信息
2.系統(tǒng)顯示支付信息
6b.貨到付款 用例圖:
交易處理順序圖:
網(wǎng)絡購物系統(tǒng)實驗報告
2.3 用戶注冊用例:
主要參與者:顧客,管理員
前置條件:系統(tǒng)運行正常
主成功場景:
1、顧客登錄購物網(wǎng)站,點擊注冊按鈕;
2、用戶進入顧客注冊頁面;
3、顧客填寫注冊信息,提交頁面;
4、系統(tǒng)管理員驗證顧客的所有注冊信息是合法;
5、系統(tǒng)返回用戶注冊成功信息;
擴展流程:
3a、用戶填寫信息有誤,提交失敗;
3b、系統(tǒng)提示顧客重新填寫失敗的信息; 后置條件
系統(tǒng)數(shù)據(jù)庫增加一條顧客信息
網(wǎng)絡購物系統(tǒng)實驗報告
2.4、用戶登錄用例
主要參與者:用戶
前置條件:用戶已注冊
主成功場景:
1、用戶瀏覽購物網(wǎng)站
2、點擊登錄按鈕,跳轉(zhuǎn)到登錄界面
3、顧客填寫登錄信息。
4、系統(tǒng)驗證登錄信息存在5、跳轉(zhuǎn)到之前登錄的界面
擴展流程:
1a、用戶輸入網(wǎng)址錯誤
1b、提示用戶重新輸入
4a、用戶填寫用戶名或密碼信息錯誤
4b、系統(tǒng)提示用戶重新輸入用戶名和密碼
網(wǎng)絡購物系統(tǒng)實驗報告
2.5查詢商品用例:
用例文本:
主要參與者:顧客
前置條件:用戶已登錄購物網(wǎng)站
主成功場景:
1.用戶登錄購物網(wǎng)站(用例開始)
2.用戶輸入商品關(guān)鍵字,查詢對應的商品
3.系統(tǒng)返回該關(guān)鍵字所對應的網(wǎng)站里的所有的商品
4.顧客選擇適合自己的商品添加到購物車
擴展流程:
3a:系統(tǒng)返回的商品中沒有顧客想要的3b:顧客重新輸入關(guān)鍵字或退出系統(tǒng)
查詢商品用例圖:
網(wǎng)絡購物系統(tǒng)實驗報告
查詢商品順序圖:
網(wǎng)絡購物系統(tǒng)實驗報告
三、領域模型
系統(tǒng)領域模型:
四.頁面跳轉(zhuǎn)圖
交易成功場景頁面跳轉(zhuǎn)圖
網(wǎng)絡購物系統(tǒng)實驗報告
五.活動圖及操作契約:
更新購物車系統(tǒng)活動圖:
網(wǎng)絡購物系統(tǒng)實驗報告
結(jié)束瀏覽開始查詢信息瀏覽信息添加購物車查看購物車更新購物車條件檢查
更新購物車操作契約 契約名稱:添加購物車 交叉引用:處理交易
前置條件:正在進行中的購物活動
網(wǎng)絡購物系統(tǒng)實驗報告
后置條件:系統(tǒng)創(chuàng)建購物車實例;
顧客被關(guān)聯(lián)到購物車實例當中; 購物車有更新
系統(tǒng)總體活動圖:
六、順序圖:
網(wǎng)絡購物系統(tǒng)實驗報告
顧客留言管理順序圖
網(wǎng)絡購物系統(tǒng)實驗報告
服務人員能夠提供在線幫助也能夠向普通顧客那樣查詢商品,其順序圖類似于顧客瀏覽商品順序圖
網(wǎng)絡購物系統(tǒng)實驗報告
網(wǎng)站管理人員管理商品的系統(tǒng)順序圖:
網(wǎng)絡購物系統(tǒng)實驗報告
交互圖之交易處理順序圖:
七、實驗感想:
通過本次實驗,我對uml建模有了深入的理解,能夠熟練使用UML的繪圖工具,為以后的學習和工作奠定的堅實的基礎。
第四篇:網(wǎng)上購物系統(tǒng)系統(tǒng)分析
一、系統(tǒng)流程分析
(1)普通用戶分為注冊會員用戶和非會員用戶。進入網(wǎng)站首頁,會員用戶登錄成功后具有查看商品信息并訂購商品、查看訂購信息、查看公告信息、修改個人信息等權(quán)限;非會員用戶不用登錄,只能查看商品信息、公告信息,不能訂購商品.只有注冊成為會員用戶并成功登錄后。方可訂購商品。
(2)部門管理員只可以對本部門銷售的商品的分類、商品品牌和商品信息進行管理,也可對自己的個人信息進行管理維護。
(3)總管理員可以對商城銷售的商品大類、各部門的管理員、公告信息和客戶訂單進行管理.并可以修改個人信息和密碼。
圖1-1 系統(tǒng)流程示意圖
二、系統(tǒng)數(shù)據(jù)庫設計
本系統(tǒng)客觀存在的實體有:管理員(gly)、注冊會員用戶user)、商品種類(spzl)、商品子類(splx)、商品品牌(ppxx)、商品(sp)、商城公告(board)。共7個實體,圖2-1 網(wǎng)上購物全局E-R圖
三、邏輯結(jié)構(gòu)設計
管理員:包括管理員編號、注冊名、密碼、真實姓名、地址、電話、E-mail、其他。當管理員編號為“0000”時,代表系統(tǒng)總管理員,其他編號為對應的部門管理員。注冊會員用戶信息:包括用戶ID、姓名、密碼、性別、地址、手 機號、電話、E—mail。
商品種類:包括商品種類編號,商品種類名稱。每一個商品種類可以有多個商品子類。商品子類:包括子類編號、子類名稱、指標名稱I、指標名稱
2、指標名稱
3、指標名稱
4、指標名稱5。5個指標名稱中分別存
放每一子類商品的5個主要的指標名稱。
商品品牌:包括品牌編號、品牌名稱、品牌生產(chǎn)商、業(yè)務聯(lián)系 信息。
商品:包括商品編號、商品名稱、商品型號、商品指標值
1、商品指標值
2、商品指標值3,商品指標值
4、商品指標值
5、參考銷售單價、上市日期、圖片、簡介。5個商品指標值巾分別存放各商品的具體指標參數(shù)值。
商城公告信息:包括公告編號、公告標題、公告內(nèi)容、發(fā)布時閱。
商品銷售信息:包括訂單編號、用戶編號、商品種類編號、商品分類編號、商品品牌編號、商品編號、訂購日期、訂購數(shù)量、實際銷售價、用戶確認、發(fā)貨日期、管理員確認。
四、數(shù)據(jù)庫邏輯結(jié)構(gòu)設計
1.公告信息表(題目,內(nèi)容,時間,編號,提交人)
2.商品類別表(編號,類別,名稱,序號,廠家,包裝類型,銷售價格,進貨價格,商品簡介,瀏覽次數(shù),銷售數(shù)量,相關(guān)圖片)
3.購物車表(編號,用戶名,商品編號,訂購時間,訂購數(shù)量,銷售價格,用戶確認,訂單號,提交時間,管理員確認)
4.用戶投訴表(投訴編號,投訴時間,用戶名,訂單號,投訴內(nèi)容,處理結(jié)果,處理標志)5.用戶信息表(用戶名,用戶密碼,用戶姓名,性別,地址,電子郵件地址,固定電話,移動電話)
6.管理員表(用戶名,密碼,用戶姓名)
五、模塊功能設計
(1)顧客注冊,登錄模塊
顧客可以通過填寫注冊信息注冊成為會員,會員注冊,登錄需要填寫附加碼,保證 系統(tǒng)的安全性。會員登錄后才能進行購物,購物車的管理與意見反饋,為登錄的會員或 未注冊的顧客只能檢索與瀏覽商品信息。(2)購物車模塊
顧客輸入帳號與密碼登錄后便可以進行購物車的管理,可以查看購物車,將商品添 加到購物車中,也可以刪除購物車中的商品,修改購物車中商品的數(shù)量,在線下訂單及 訂單查看。
(3)商品檢索,瀏覽模塊,特價商品檢索,瀏覽模塊
顧客可以根據(jù)不同的商品種類瀏覽商品信息(如商品名稱,商品圖片,商品型號,價格,生產(chǎn)廠商,生產(chǎn)日期等),也可以輸入關(guān)鍵字進行商品檢索。顧客可以根據(jù)不同 的商品種類瀏覽特價商品信息(如商品名稱,商品圖片,商品型號,價格,生產(chǎn)廠商,生產(chǎn)日期等),也可以輸入關(guān)鍵字進行特價商品檢索。(4)顧客留言模塊
顧客登錄成功后,進入反饋信息界面,可以發(fā)表自己的意見或建議。(5)后臺登錄模塊
系統(tǒng)管理員輸入帳號,密碼和附加碼可以登錄后臺界面,登錄驗證模塊根據(jù)輸入的 帳號密碼識別不同角色的管理員,然后進入不同的后臺管理模塊,賬號密碼輸入錯誤后 給出錯誤提示并要求從新輸入。(6)訂單管理模塊
訂單管理員登錄后,可以根據(jù)日期范圍,訂單完成狀態(tài),訂單編號等取得訂單列表 與查看某訂單的詳情,也可以修改訂單的完成狀態(tài)及訂單中的商品或數(shù)量,還可以刪除 訂單本身及訂單中的商品。(7)商品管理模塊
商品管理員可以查看商品種類和商品信息,也可以新增,修改,刪除商品的種類和 商品本身。
(8)特價商品管理模塊
該模塊也和商品管理模塊一樣,商品管理員可以查看特價商品種類和信息,也可以 新增,修改,刪除商品的種類和特價商品本身,并且可以將商品列為特價商品以及將特 價商品修改為一般商品(9)會員管理模塊
會員管理員登錄后,可以根據(jù)注冊時間范圍,會員級別及會員D取得會員列表,然后對某個會員可以進行詳細資料的查看,級別調(diào)整與刪除操作;也可以根據(jù)留言時間 范圍,回復狀態(tài)及會員D取得留言列表,然后對某個留言進行內(nèi)容查看,回復與刪除 操作。
(10)系統(tǒng)用戶管理模塊
系統(tǒng)管理員登錄后,可以根據(jù)用戶列表進行用戶詳細資料的查看,新增用戶,修改 用戶與刪除用戶操作。論文
1. 網(wǎng)上購物系統(tǒng)的開發(fā)背景+可行性分析(經(jīng)濟,技術(shù))2. 系統(tǒng)需求
3. 系統(tǒng)設計+系統(tǒng)分析、實現(xiàn) 4. 系統(tǒng)工作流程 5.
第五篇:網(wǎng)上購物系統(tǒng)論文
目錄
第一章 系統(tǒng)設計概述 1 1.1引言 1 1.1.1系統(tǒng)開發(fā)的背景 1 1.1.2系統(tǒng)開發(fā)的目的與意義 1 第二章 可行性研究與需求分析 3 2.1可行性研究 3 2.1.1技術(shù)可行性 3 2.1.2經(jīng)濟可行性 3 2.1.3運行可行性 3 2.1.4法律可行性 3 2.2需求分析 3 2.2.1系統(tǒng)目的 3 2.2.2數(shù)據(jù)流圖 4 2.2.3數(shù)據(jù)字典 6 2.2.4功能需求 8 2.2.5性能要求 8 第三章 項目設計的基本原理和采用的主要方法與技術(shù) 9 3.1項目設計的基本原理 9 3.2項目設計采用的主要方法與技術(shù) 9 第四章 總體設計 12 4.1總體設計原理 12 4.2運行環(huán)境 12 4.3系統(tǒng)流程圖 12 4.4系統(tǒng)功能模塊圖 14 4.5系統(tǒng)安全與維護 15 第五章 詳細設計 17 5.1程序流程圖 17 5.2數(shù)據(jù)庫設計 19 5.2.1概念結(jié)構(gòu)設計 20 5.2.2邏輯結(jié)構(gòu)設計 23 第六章 編碼實現(xiàn)與測試用例設計 28 6.1登錄界面 28 6.2管理界面 30 6.3網(wǎng)站主界面 33 6.4訂單查詢界面 34 第七章 測試用例設計、測試與運行記錄 37 7.1測試目的 37 7.2 測試目標 37 7.3測試方法 37 7.4測試項目 37 7.5測試界面 37 7.5.1管理員登錄測試 37 7.5.2管理商品信息測試 38 7.5.3管理訂單信息測試 39 7.5.4用戶管理測試 40 7.5.5管理員密碼修改測試 40 7.5.6用戶登錄測試 41 7.5.7用戶個人管理測試 42 7.5.8添加商品信息測試 42 總結(jié) 44 參考文獻 47 本系統(tǒng)必須具備以下幾個功能如下:
1.顧客登錄及身份驗證功能:接受游客的基本信息。
2.顧客在線購物功能:顧客瀏覽商品信息,進行選購,提交訂單后進行交易。3.管理員功能:管理員對整個系統(tǒng)進行管理。
4.購物車功能:在顧客提交訂單之前,一直存放顧客選購得商品