订单管理系统中英文对照外文翻译文献.docx
《订单管理系统中英文对照外文翻译文献.docx》由会员分享,可在线阅读,更多相关《订单管理系统中英文对照外文翻译文献.docx(15页珍藏版)》请在三一办公上搜索。
1、订单管理系统中英文对照外文翻译文献中英文对照外文翻译 (文档含英文原文和中文翻译) MySQL and JSP Web applications JSP developers encounter unique problems when building web applications that require intense database connectivity. MySQL and JSP Web Applications addresses the challenges of building data-driven applications based on the JavaS
2、erver Pages development model. MySQL and JSP Web Applications begins with an overview of the core technologies required for JSP database development-JavaServer Pages, JDBC, and the database schema. The book then outlines and presents an Internet commerce application that demonstrates concepts such a
3、s receiving and processing user input, designing and implementing business rules, and balancing the user load on the server. Through the JDBC (Java DataBase Connector), the developer can communicate with most commercial databases, such as Oracle. The solutions presented in MySQL and JSP Web Applicat
4、ions center on the open source tools MySQL and Tomcat, allowing the reader an affordable way to test applications and experiment with the books examples. So What Is JSP All About? If you meet the requirements mentioned, you should already have a pretty good idea what the answer to this question is.
5、JSP is all about doing highly object-oriented Web sites that can leverage all the best practices of modern software engineering. These practices include things such as SQL databases and UML-based design. This isnt to say that JSP is a cure-all and that using it will automatically make your Web site
6、a paragon of engineering art. Its just as possible to design bad Web sites in JSP as with any other technology. Thats why, as you go through the text, you will see how to incorporate the best practices and how to avoid the pitfalls of convenience when projects get stressful. JSP itself is an evoluti
7、onary step along the path that started with the first static Web servers, moved through CGI-enabled servers, and finally the first generation of script-enabled servers. JSP is less a Web server with a Java component than it is a Java engine that understands the Web. JSP grew out of Java servlets. Se
8、rvlets allow the developer to handle the incoming Web requests using a Java program that has access to all the normal information that a Common Gateway Interface (CGI) program would. In addition, the servlet has access to session-persistent objects. These are Java objects that are associated with a
9、specific user session and can be used to store state between requests. Servlet programming was a major step forward in allowing developers to write well-structured modular Web applications using an object-oriented language. It also solved the problem of state persistence, allowing more information t
10、o reside on the server during a transaction and less to have to pass back and forth between the user and the server. Servlets still suffered from one major problem. Because they eventually need to spit out HTML, the HTML coding had to be embedded in the servlet code. This led to code fragments like
11、the one shown here: Out.println(nnThank you for Registeringn); Out.println(); This kind of embedding gets very old very fast when you have to code a lot of pages. In addition, having to escape all of the quotation marks can lead to a lot of confusing and hard-to-find errors if you leave out a backsl
12、ash. Eventually, a still-better idea emerged. Suppose that you could combine the best of static HTML pages and with the interactive capabilities of servlets. The result was JavaServer Pages (on the Microsoft side, the result was Active Server Pages). As Figure I.1 shows, JSP is a complicated beast.
13、In the next chapter, youll walk through this flow in detail, but for the moment, here are the major steps: 1. A request comes in from a browser using the normal HTTP request format. 2. The Web server hands off the request to JSP. JSP looks at the filename and finds the appropriate JSP file. 3. The .
14、jsp file is converted into a .java file, containing Java code that will create a class whose name is derived from the .jsp filename. 4. JSP then compiles the .java file using javac to produce a .class file. Note that the two previous steps are skipped if a .class file already exists and is newer tha
15、n the .jsp file. 5. An instance of the newly created class is instantiated and sent the _jspService message. 6. The new instance looks to see if there is already an instance of the stuff.User object called user existing in the session object space for the currently connected user. If not, one is ins
16、tantiated. 7. As part of servicing stuff.jsp, the user instance is called with the getUserName method. 8. If the JSP processing requires access to information in a database, it uses JDBC to make the connection and handle the SQL requests. As you can see, a tremendous amount of power is available in
17、the JSP world. Developers are free to write Web pages that look mostly like HTML, except where callouts to Java are required. But, at the same time, they are free to develop fully fleshed-out object-oriented applications using all the features that Java can bring to bear. They also get all the benef
18、its of servlets, including session persistence. Why Do We Need Databases? Well, one reason is so that Larry Ellison of Oracle can afford to keep himself on Prozac when he thinks about Bill Gates. A more serious answer is the same reason that drove man to first press a stick against a piece of wet mu
19、d: because its good to write things down. Web servers are marvelous creatures, but theyre a bit like idiot savants. Ask them to serve a Web page or run a piece of Java, and they perform like a champ. But start asking them to remember what they did five minutes ago, and they develop amnesia faster th
20、an a character in a soap opera. The first and most important reason that you use databases is that theres a lot in an e-commerce transaction that you need to remember and track: A users name, address, credit card, and other information previously entered on a registration page hat the user might hav
21、e put into a shopping cart and left from a previous transaction What items are in stock, along with their price, description, and so on Orders that need to be fulfilled, orders that have been shipped, and items that have been backordered . Now, you could store all this information in a flat file on
22、the servers hard disk, but there are other important properties that you want to have for this data: You want to be able to back out a transaction if part of it fails. You want to be able to locate the data somewhere more secure than the Web server, which could be in a DMZ or outside the firewall al
23、together. You want to be able to access data such as user data or products quickly, even if there are thousands or millions of them. When you add these items to the shopping list, only a relational database will really do the job effectively. MySQL Many sites dont need the battleship strength (and p
24、rice tag) of Oracle. MySQL is an open-source SQL database available for anyone to use, with many (although not all) of the features of its big brothers, such as Oracle. MySQL is available for just about any computer that has decent powerit is fairly lightweight on the processor and easy to install (
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 订单 管理 系统 中英文 对照 外文 翻译 文献
链接地址:https://www.31ppt.com/p-3129648.html