Font Size: a A A

Design And Implementation Of Military Food Menu System Based On MVC And Struts

Posted on:2008-12-13Degree:MasterType:Thesis
Country:ChinaCandidate:M T JiangFull Text:PDF
GTID:2178360212996926Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the rapid development of Internet and the coming of the information age,every industry or trade, including military logistics management, is affected by themodern information technology. Military Food Menu is a key link of fulfillingstandards, such as soldier nutrient supply standards, food supply standards and boardwages standards. It is also an important component ofmilitary logisticsmanagement.The design and development ofMilitary FoodMenu System provides sufficient helpfor everymilitary company to further standardizemessmanagement and enhance thecombat effectiveness of our troops. The system will not only prevent the occurrenceof violations of discipline, but also will provide enough information of managementand decision for the military logistics leaders. According to this requirement, aMilitary Food Menu Management Information System on network based on J2EEframe andMVCmodelwas developed in this thesis.In the second chapter of this thesis, I mostly introduce the relative techniques torealize the Military Food Menu System, including the basic concept of components,framework, design patterns, and J2EE structure, core technologies and twodevelopment models of J2EE, and the structure of MVC model. And then introducethemost important technique of theMilitary FoodMenu Systemwhich is Struts.Apache Struts is a free open-source framework for creating Java webapplications. Web applications differ from conventional websites in that webapplications can create a dynamic response.Many websites deliver only static pages.A web application can interact with databases and business logic engines tocustomize a response.Web applications based on JavaServerPages sometimes commingle databasecode, page design code, and control flow code. In practice, unless these concerns areseparated, larger applications become difficult to maintain. One way to separateconcerns in a software application is to use a Model-View-Controller (MVC)architecture. TheModel represents the business or database code, theViewrepresentsthe page design code, and the Controller represents the navigational code. The Strutsframework is designed to help developers create web applications that utilize MVCarchitecture.The Struts framework provides three key components:TheModelThe Model component of the Struts Framework represents the data objects ofthe Struts application. It often relies on simple JavaBean, enterpriseJavaBean andrelationship database object-oriented to realize business objects and other systems.Orit can be used as a tool tomanipulate or implement aWeb application.TheViewThe View component in the Struts framework is mapped to a Java Server thatcan contain any combination of HTML, JSP, and Struts tags. There is an actionForms in theViewcomponentwhich answers for the transmission of the table data.TheControllerThe Controller component is the backbone of whole Struts framework. Itinherits a servlet named org.apache.Struts.action.ActionServlet. This servlet receivesHTTP requests and control it. The Controller component consists of four components:Action Servlet, struts.config-xml, Request Processor and Action component. Actionservlet is the center controller of the Struts Framework. Request Processor is therequest processor of each application module. Action component is to manage amaterial operation. Struts.config-xml answers for install and configure eachcomponent. The Controller is the most important component of the StrutsFramework.Struts has gained wide acceptance in the industry and, being open source, itencourages developers enterprise wide to use a reliable and tested framework insteadof creating their own and producing "islands of obfuscating code" betweendevelopment teams. Struts provides a standard and uniform way to createapplications that are dynamic, reusable, and understandable. Struts applications canbe conveniently adapted to any locale by creating message bundles thus avoidingexorbitant overheads and costs to make a successful world-wide applicationdeployment.In the third and the fourth chapter of my thesis, I introduce the analysis andimplementation of the Military Food Menu System in detailed. The system consistsof six modules, these are: system maintenance, food menu creation, datamanagement, report and receive, practical knowledge, systemhelp.1. System maintenance module. The users can maintenance the system in thismodule, it allows users to import a new company, copy food menus, restore foodmenus, clear foodmenus and change the password of the system.2. Food menu creation module. The users may create different weekly foodmenus which they need. This module gives a way to evaluate the food menusaccording to soldier nutrient supply standards, food supply standards and boardwages standards, it also create holiday food menus according to the needs ofimproving lives.3. Data management module. The users can change the various parametersinvolved in creating food menus. The users not only add or delete food materials orfood cookbook, but also change the name or dosages of the food materials and foodcookbook.4. Report and receive module. In order to facilitate users on different computer,the system provides a report and receive module. The users can store their foodmenus and other relevant documents in the locations that they want to store. Thesefoodmenus and documents can be input the systemwhen necessary, and it completesreceiving function.5. Practical knowledge module. Practical knowledge module consists of fivepart, these are Chinese Food Culture, cold food menu, food material choice, a foodbazaar and China meal guide. It introduces the method of the Chinese Food Cultureand cold food menu for military company in details, it can also query menus whichbe produced by the somematerials.6. System help module. If you press the F1 key on each interface, you willobtain the relevant assistance. If the system does not provide the help of this theme,themain interface of systemwill appear, the users can query information according asthe index.Next, I design model and view components, configure controller componentsaccordance with the Struts technical requirements. View components consist of JSP,there is not any Java program code in these JSP files. Model components consist ofActionForm and Action, each action is a business agent, it calls business methods ofmodel components and complete business logic of the users request. For example, itcan insert a record or change a record. The database operation of the system isachieved through DAO files. Controller consist of the ActionServlet that it is in theStruts framework, it can be configured according to the struts-config.xml files. OnlyoneActionServlet class can be configured in aWeb application.In the fifth chapter of this thesis, I introduce the system security strategy andimplementation. To achieve transmission network security, normally use SSL(SecureSocketsLayer) Security transmission protocol. The communicatinginformation on Web must be encrypted by use of SSL (Secure Sockets Layer)protocol which is the common method of the secure transmission. This method isslow and deteriorates the performance of theWeb server. Anew method for securingtransmission by use of DH (Diffie-Hellman) key exchange algorithmand DES (DataEncryption Standard) algorithm to transfer the DH parameters directly is presented.Web server and client compute the shared key and encrypt the essentialcommunicating information, the secure transmission is insured and the influence ofthe new method compared with SSL on Web server performance come down. Inaddition, I also use password authentication, and user roles to improve the security ofthe system.At end of this thesis, I summarized the characteristics of theMilitary FoodMenuSystem, find out the disadvantages of the system design, pointed out some ways tofurther improve.
Keywords/Search Tags:Implementation
PDF Full Text Request
Related items