基于Struts框架的在线购物系统设计与实现-毕业论文外文文献翻译.docx
《基于Struts框架的在线购物系统设计与实现-毕业论文外文文献翻译.docx》由会员分享,可在线阅读,更多相关《基于Struts框架的在线购物系统设计与实现-毕业论文外文文献翻译.docx(9页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、附 录Design and Implementation of Online Shopping System Based on the Struts Framework Abstract: Struts is currently a prevalent Web application development framework based on MVC. It has prominence in the open, large and extensible J2EE-based Web application development. Through combining the actual
2、operation process of E-commerce enterprise with the developed requirement, this paper categorically analyses MVC actual implementation technology, analyses and describes the Struts framework. Finally it gives a demonstrative example of Category management module, which explains in detail technical i
3、mplementation to E-Online Shopping System based Struts framework and presents function description of correlative constitution section. By practical application, it shows the system improves platforms security and stability.1. INTRODUCTION With the development of internet technology, network service
4、 plays an increasingly important role in peoples daily life. People expect that they can get the satisfied service or goods in a convenient way and in very short time. Hence, the electronic commerce system at this moment plays a very critical part. On one hand, it is very convenient for people to lo
5、ok at the goods online and it also shortens peoples time period for shopping. On the other hand, for the enterprise, it shortens intermediate links, and it can reduce the geographic restrictions and decreases the merchandise inventory pressure, therefore, it can greatly save business operating cost.
6、 However, this system also faces problems that the form of ecommerce is very changeable; as a result, the inner structural can be complex and varied. Then, how to deal with that? Based on the development model of Struts 1, it can effectively deal with these varied requirements. It completely changes
7、 the previous traditional J2EE development mode that is the coupling of display, control and business which makes software reuse difficult, cooperation and division of the team difficult, development time long and cost high. Therefore, this article based on the integrated development environment of
8、MyEclipse and using MySQL as the backend database, the MVC OF Struts designed a crossplatform, extensible B/S electronic commerce system. This system is runs on the internet where users can browse the goods and buy them freely, they can even choose the payment method. This system innovates the tradi
9、tional shopping, which can make people buy what they want at home. The computational results of the system states that the system operates well and that its security and expandability are also high.2. INTRODUCTION OF STRUTSStruts 2 is an exceptional MVC frame. It combines features of Servelet and JS
10、P and inherits various features of MVC, and it changes and extends according to the J2EES characteristic. There are three main parts of Struts: The controller is responsible for the Action that is processed by a specific operation; JSP page (view); that applies business logic packaging. The master c
11、ontroller of Struts (ActionServlet) receives the request from client and according to the allocated route of the system (Struts-config. xml) HTTP requests the objects to the other Action. In these action objects, it will make business operation and after operation, it will transfer from ActionServle
12、t to JSP, and the processed results will be returned to clients. The packaging data through Action Form can be mutual used in Model and View. The working principle of Struts is showing in Fig. (1).3. THE ANALYSIS AND DESIGN OF ELECTRONIC COMMERCE SYSTEM3.1. The Demand Analisis and Case Design of the
13、 SystemThe aim of this electronic commerce system is realizedby the construction of this system. The most important thing is to attract customers to know the main product of the website, for instance an e-commerce website which mainly sells childrens shoes or childrens clothes and so on. For transac
14、tions, it has to build B to C sales model which are consumer facing, and it has to realize the integration of products, online payment, and logistic services. Moreover, it needs to make a customized search engine and data analysis system to find the potential and key customers. It also needs to anal
15、yze the market trend to build a scientific decision system 3.Therefore, the system requirement description is as following:electronic commerce system includes two subsystems; one is for the front desk sale and display. When clients log in, they can freely look over and search their favorite products
16、 (for example: off-price goods, new arrivals). Meanwhile, customers can put the products they like in a “shopping cart” and which they can later modify, (add or delete), then they can submit the order form to service counter to pay. The other subsystem is in the backstage management system. Merchant
17、s can manage the relevant information published, typed-in and alteration. It can also manage the search of the order and manage the registered clients of on-line sales system. Meanwhile, it can analyze consumer behavior, which can provide evidence for better scientific decision for the corporation.
18、Fig. (2) is the use case of this eshopping system.3.2. The E-R Design of Online Shopping SystemPowerDesigner 3, 4 is the CASE tool set of Sybase, it can make data flowchart, concept data model, physical data model and can also control the generated data model. This system uses PowerDesigner to set u
19、p data and induct E-R model to MySQL, and generate physical data sheets. Therefore, according to the above description, combined with the need and description of 2.1, the design of E-R can be finished. However, there are numerous system database sheets, only some important database sheets are listed
20、 here. The relationship among them will be explained here. The specific design of E-R is in (Fig. 3).3.3. Structure Design of Online Shopping System In this article, the system uses Struts based on MVC, which makes great convenience for the developer to make modularization exploitation. It greatly i
21、ncreased codes reusability and maintainability, and it also takes the crossplatform of this system into consideration. Fig. (4) shows the design model of this online shopping system. View is responsible for the systems visual theme and realization, and View is composed by JSP and Action Form bean. J
22、SP contains static HTML, CSS, Div and Struts label database. Action Form bean is responsible for the data transmission between JSP and Model. Controller is composed by Action Servlet. Its task are:first, it has to finish all the initialized work, that is to read the information in Struts-config. xml
23、 and intercept the matching map of URL by Action Servlet; second, according to the intercepting request initiate Action Form bean; last, to find the corresponding Action subclass in Action Mapping: if there are no corresponding Action, then transmit the request to JSP; if there are corresponding Act
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 Struts 框架 在线 购物 系统 设计 实现 毕业论文 外文 文献 翻译
限制150内