CN106484434A - A kind of common Web software development system based on MVC - Google Patents
A kind of common Web software development system based on MVC Download PDFInfo
- Publication number
- CN106484434A CN106484434A CN201610948270.4A CN201610948270A CN106484434A CN 106484434 A CN106484434 A CN 106484434A CN 201610948270 A CN201610948270 A CN 201610948270A CN 106484434 A CN106484434 A CN 106484434A
- Authority
- CN
- China
- Prior art keywords
- layer
- mvc
- web
- software development
- system based
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of common Web software development system based on MVC.Including Web server, intermediate layer, Web browser database server;Described Web server is used for receiving request, executes java server end program Servlet by application program and returns its output;Described database server is used in management information system;Described intermediate layer includes Model layer, View layer and WebController layer;Described Model layer is used for service logic;Described View layer shows user interface;Described WebController layer controls Model layer and View layer.The present invention is by based on MVC pattern, improving speed and the reusability of program development, simplifying the purpose of exploitation;URL is passed through by client browser and intermediate layer Web server is set up and connected, cooperate class, Servlet, XML file and XSL composition by one group.
Description
Technical field
The invention belongs to technical field of software development, more particularly to a kind of common Web software development system based on MVC
System.
Background technology
MVC method employs the best attributes of JSP and Servlet method, can be with collaborative work using both technology.
Servlet is process layer (controller), and it receives request, the request of Servlet control input and the response of output.JSP
It is display layer (view), do not include any service logic script, it simply transfers data to Servlet, and receive and show
The data returning.
The advantage of this framework should be apparent for Web applied software development.First, it will calculate and show clear
Separately, the process processing is not occurred on JSP, in Servlet or business logic, there is no data form.This
Detached benefit is that java applet person can be absorbed in Servlet code, and HTML author can be absorbed in JSP.Second point, control
Device Servlet processed makes all decisions on the page.The page and logic are not in any decision-making, this provides for improved one should
With performance and the extensibility of program, because request can be directed to the different assembly of framework, even different server.
MVC pattern has powerful advantage in interactive system exploitation, and the personnel that are therefore developed are incorporated into J2EE system
In, when becoming J2EE and interacting formula application and development, particularly Web application and development when one very important design pattern.
Content of the invention
It is an object of the invention to provide a kind of common Web software development system based on MVC, by adopting MVC pattern,
URL is passed through by client browser and intermediate layer Web server is set up and connected, cooperate class, Servlet, XML by one group
File and XSL composition.
The present invention is achieved by the following technical solutions:
The present invention is a kind of common Web software development system based on MVC, including Web server, intermediate layer, web browsing
Device database server;Described Web server is used for receiving request, executes java server end program by application program
Servlet simultaneously returns its output;Described database server is used in management information system;Described intermediate layer includes
Model layer, View layer and WebController layer;Described Model layer is used for service logic;Described View layer shows user circle
Face;Described WebController layer controls Model layer and View layer.
Preferably, described Servlet is as controller, for receiving the request of Web browser and request being responded,
Response results are represented to XSL with XML file data is activation.
Preferably, described intermediate layer is simulated view controller, MVC.
Preferably, described WebController layer is used for receiving the request from Web browser, and will receive simultaneously
XML file data in order to preserve service logic is processed, and then connects data base and carries out business operation, will be from data base
The result returning is organized into XML file data.
The invention has the advantages that:
The present invention is based on MVC pattern, improves speed and the reusability of program development, simplifies the purpose of exploitation;By client
End browser passes through URL and intermediate layer Web server to be set up and connects, by one group cooperate class, Servlet, XML file with
And XSL composition.
Certainly, the arbitrary product implementing the present invention it is not absolutely required to reach all the above advantage simultaneously.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by use required for embodiment description
Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability
For the those of ordinary skill of domain, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings
Figure.
Fig. 1 is a kind of common Web software development system flow chart based on MVC of the present invention;
Fig. 2 is a kind of common Web software development system data flow figure based on MVC of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is all other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
Refer to shown in Fig. 1 and Fig. 2, the present invention is a kind of common Web software development system based on MVC, including Web clothes
Business device, intermediate layer, Web browser database server;
Web server is used for receiving request, executes java server end program Servlet by application program and returns
Its output;
Database server is used in management information system;
Intermediate layer includes Model layer, View layer and WebController layer;Described Model layer is used for service logic;Institute
State View layer display user interface;Described WebController layer controls Model layer and View layer.
Wherein, Servlet is as controller, for receiving the request of Web browser and request being responded, response knot
Fruit is represented to XSL with XML file data is activation.
Wherein, interbed is simulated view controller, MVC.
Wherein, WebController layer is used for receiving the request from Web browser, and will receive in order to protect simultaneously
The XML file data depositing service logic is processed, and then connects data base and carries out business operation, by return from data base
Result is organized into XML file data.
Access to data and management are realized using JavaServlet/Xml+JDBC technology, is passed through by client browser
URL and intermediate layer Web server are set up and are connected.Receiving data request is responsible for by Web server, carries out after passing to Servlet assembly
Process, the SQL statement in the service logic of request is parsed and is connected into data base processed, then, Servlet assembly will
The result set that data base is returned is saved in XML file, then the XSL being specified with XML file enter row format conversion and the most at last
Response returns to user, is presented to client by browser.
Represent, with XSL, the XML file returning from controller and be shown to end user, be such as converted into text, html and XML
File.Mainly service logic is preserved by XML file, all data base's execution sentences are all saved in it in the form of an xml-file
In.Generally developer, when carrying out service logic exploitation, is actually carried out in XML file in the way of configuration file
Exploitation.
It should be noted that in said system embodiment, included unit simply carries out drawing according to function logic
Point, but it is not limited to above-mentioned division, as long as being capable of corresponding function;In addition, each functional unit is concrete
Title also only to facilitate mutual distinguish, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in the various embodiments described above method
The program that can be by complete come the hardware to instruct correlation, and corresponding program can be stored in an embodied on computer readable storage and be situated between
In matter, described storage medium, such as ROM/RAM, disk or CD etc..
Present invention disclosed above preferred embodiment is only intended to help illustrate the present invention.Preferred embodiment is not detailed
Describe all of details, also do not limit the specific embodiment that this invention is only described.Obviously, the content according to this specification,
Can make many modifications and variations.This specification is chosen and is specifically described these embodiments, is to preferably explain the present invention
Principle and practical application so that skilled artisan can be best understood by and utilize the present invention.The present invention is only
Limited by claims and its four corner and equivalent.
Claims (4)
1. a kind of common Web software development system based on MVC is it is characterised in that to include Web server, intermediate layer, Web clear
Look at device database server;
Described Web server is used for receiving request, executes java server end program Servlet by application program and returns
Its output;
Described database server is used in management information system;
Described intermediate layer includes Model layer, View layer and WebController layer;Described Model layer is used for service logic;Institute
State View layer display user interface;Described WebController layer controls Model layer and View layer.
2. a kind of common Web software development system based on MVC according to claim 1 is it is characterised in that described
As controller, for receiving the request of Web browser and request being responded, response results are with XML file number for Servlet
Represented according to being sent to XSL.
3. a kind of common Web software development system based on MVC according to claim 1 is it is characterised in that described centre
Layer is simulated view controller, MVC.
4. a kind of common Web software development system based on MVC according to claim 1 is it is characterised in that described
WebController layer is used for receiving the request from Web browser, and will receive in order to preserve service logic simultaneously
XML file data is processed, and then connects data base and carries out business operation, the result returning from data base is organized into
XML file data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610948270.4A CN106484434A (en) | 2016-10-26 | 2016-10-26 | A kind of common Web software development system based on MVC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610948270.4A CN106484434A (en) | 2016-10-26 | 2016-10-26 | A kind of common Web software development system based on MVC |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106484434A true CN106484434A (en) | 2017-03-08 |
Family
ID=58271508
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610948270.4A Pending CN106484434A (en) | 2016-10-26 | 2016-10-26 | A kind of common Web software development system based on MVC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106484434A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108756962A (en) * | 2018-05-04 | 2018-11-06 | 西安科技大学 | A kind of hydraulic support monitoring method and system based on MVC design pattern |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130283228A1 (en) * | 2010-12-21 | 2013-10-24 | Mingke Sun | SOA-based Integration Method and System for 3D Design System |
CN103942038A (en) * | 2013-01-18 | 2014-07-23 | 上海共联通信信息发展有限公司 | Database development system based on Intel Express and SOA |
-
2016
- 2016-10-26 CN CN201610948270.4A patent/CN106484434A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130283228A1 (en) * | 2010-12-21 | 2013-10-24 | Mingke Sun | SOA-based Integration Method and System for 3D Design System |
CN103942038A (en) * | 2013-01-18 | 2014-07-23 | 上海共联通信信息发展有限公司 | Database development system based on Intel Express and SOA |
Non-Patent Citations (1)
Title |
---|
王新: "基于MVC模式的通用Web软件系统开发框架设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108756962A (en) * | 2018-05-04 | 2018-11-06 | 西安科技大学 | A kind of hydraulic support monitoring method and system based on MVC design pattern |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11403364B2 (en) | Method and terminal device for extracting web page content | |
CN102184266B (en) | Method for automatically generating dynamic wireless application protocol (WAP) website for separation of page from data | |
CN101122921B (en) | Method forming tree-shaped display structure based on ajax and html | |
CN103268361B (en) | Extracting method, the device and system of URL are hidden in webpage | |
US20090100321A1 (en) | Universal contextual actions menu across windows applications | |
CN102779164B (en) | The rendering intent of a kind of operation system and dynamic page thereof | |
US9864671B1 (en) | Systems and methods of live experimentation on content provided by a web site | |
US20100131869A1 (en) | Technology for generating service program | |
CN103729285A (en) | Method, device and system for testing web page | |
CN107391115B (en) | A kind of method, apparatus and computer equipment for realizing pop-up alternative events | |
CN105045645A (en) | Webpage loading method, device and system | |
CN105763635A (en) | Information processing method and system and server | |
CN103678343B (en) | The method and apparatus of prompting webpage load progress | |
US7613696B2 (en) | Configuring search results using a layout editor | |
CN102591961A (en) | Method and system for making data charts | |
CN102831150A (en) | Interactive method, system and terminal for browser and local application | |
CN103019556A (en) | Quick help information display system and quick help information display method | |
CN109240664A (en) | A kind of method and terminal acquiring user behavior information | |
CN102253986A (en) | Method and device for improving webpage displaying effect in multiple terminals | |
CN103617043B (en) | A kind of method and system uploaded with picture web data | |
KR20120122959A (en) | Method and Device for Collecting Web Contents and Computer-readable Recording Medium for the same | |
CN107273127A (en) | Method and device for realizing page plug-in web application | |
CN106202470B (en) | The processing method and system of script | |
CN106484434A (en) | A kind of common Web software development system based on MVC | |
CN103399746B (en) | Information management system convenient to develop secondarily and development method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170308 |