CN105117473A - Information inquiry system based on Web and information inquiry method based on Web - Google Patents

Information inquiry system based on Web and information inquiry method based on Web Download PDF

Info

Publication number
CN105117473A
CN105117473A CN201510559289.5A CN201510559289A CN105117473A CN 105117473 A CN105117473 A CN 105117473A CN 201510559289 A CN201510559289 A CN 201510559289A CN 105117473 A CN105117473 A CN 105117473A
Authority
CN
China
Prior art keywords
static page
page
web
static
user
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
Application number
CN201510559289.5A
Other languages
Chinese (zh)
Inventor
蔡俊平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hangsheng Industry Co Ltd
Original Assignee
Shanghai Hangsheng Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Hangsheng Industry Co Ltd filed Critical Shanghai Hangsheng Industry Co Ltd
Priority to CN201510559289.5A priority Critical patent/CN105117473A/en
Publication of CN105117473A publication Critical patent/CN105117473A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an information inquiry system based on Web. The information inquiry system comprises a Web server, a database, a static page issuing module and a static page customizing module, wherein the static page issuing module is used for generating a static page when relevant information inquired in the database changes; the static page customizing module is used for changing the static page into a static page customized by a user according to an inquiry request sent by the user; and the Web server sends the static page customized by the user to the user. The invention also provides an information inquiry method based on Web. The information inquiry system based on Web and the information inquiry method based on Web provided by the invention have the advantages that for different inquiry pages, when the relevant information in the database changes, the static pages of the inquiry pages are issued; and when the Web server receives the inquiry request of the user, the generated static pages are customized, and the database access is not needed, so that the effect of fast responding to the inquiry request of the user can be achieved, and the user experience is improved.

Description

A kind of information query system of sing on web and information query method
Technical field
The present invention relates to a kind of information query system, particularly relate to a kind of information query system and information query method of sing on web.
Background technology
The major function of WEB server is to provide network information browsing service, can provide the program of document to the browser sending request, as long as people are by using simple method, just can obtain abundant information material easily very rapidly.
In website design, the webpage of pure HTML (application under standard generalized markup language) form is commonly called " static Web page ", and static Web page is the html file of standard, and its file extension is.Htm .html, can comprise text, image, sound, FLASH animation, client script and ActiveX control and JAVA small routine etc.
Static Web page is the basis of Web Hosting, and early stage website is generally all made by static Web page.Static Web page is for dynamic web page, refer to do not have background data base, containing program and can not be mutual webpage.
The benefit of static page:
1 fast response time, under equal conditions, a static page is more faster than dynamic page; For the user of frequent access, the client-cache of static page also contributes to user's fast access;
2 server resources take few, and static page does not need the support of database, does not need the calculating of server-side application;
3 for a large amount of users access, and the advantage generating static page is more obvious; Picture Sina, the website that user's visit capacities such as Netease are very large all adopts the technology generating static page;
4 users see being separated of the page and application program;
Even if the mistake that 5 have an application program aspect, the user of access can't see, and is conducive to the safety of back-end data like this.
But static Web page upgrades cumbersome relatively, be applicable to the display type website that general renewal is less.
Static Web page and dynamic web page respectively have feature, website adopt dynamic web page or static Web page depend primarily on the functional requirement of website and web site contents number, if web sites function is fairly simple, content update amount is not very large, adopt the mode of pure static Web page can be simpler, and generally need the information query system that database is supported, dynamic web page technique can be adopted realize.
Compared with static Web page, dynamic page needs to send order and obtain data from database, generating web page, if the user of accessed web page is too much simultaneously, processing each user request needs transmission order to obtain data from database, database will be caused to run slowly, thus cause response speed excessively slow, have a strong impact on Consumer's Experience.
Summary of the invention
For the defect existed in prior art, the invention provides a kind of information query system of sing on web, for different query page, when the relevant information in database changes, the static page of the releasing inquiry page; And Web server is when receiving the inquiry request of user, the static page generated is customized, and without the need to accessing database, thus can respond the inquiry request of user fast, improve Consumer's Experience.
For solving the problem, technical solution of the present invention provides a kind of information query system of sing on web, comprise Web server and database, the information query system of sing on web also comprises static page release module and static page customized module, static page release module is connected with static page customized module, static page release module is used for when in database, query-related information changes, and generates static page, is stored in Web server; Static page customized module is used for the inquiry request sent according to user, static page is generated the static page of customization; The static page of customization is sent to user by Web server.
Further, static page release module generates a static page for each query page on Web server.
Further, the new static page that static page release module generates for a query page replaces existing static page.
Further, the request content in the inquiry request that described static page customized module sends according to user, generates the static page of customization.
For solving the problem, technical solution of the present invention also provides a kind of information query method of information query system of above-mentioned sing on web, and described information query method comprises the following steps:
(1) information corresponding to a query page of Web server in database changes, and static page release module generates static page, is stored in Web server;
(2), when Web server receives the inquiry request of user to query page, inquiry request is sent to static page customized module;
(3) the described static page that generates according to inquiry request and described static page release module of static page customized module, generates the static page of customization, and sends Web server to;
(4) static page of customization is returned to user by Web server.
Further, the described static page that in step (3), static page customized module generates according to inquiry request and described static page release module, the static page generating customization comprises the following steps:
Described static page customized module receives the described inquiry request of Web server transmission and the described static page of described static page release module generation;
Described static page customized module parses the request content in described inquiry request;
Described static page customized module based on static page described in described request content modification, to generate the static page of described customization.
Compared with prior art, the information query system of sing on web provided by the invention and information query method have following beneficial effect:
For different query page, when the relevant information in database changes, the static page of the releasing inquiry page; And Web server is when receiving the inquiry request of user, the static page generated is customized, and without the need to accessing database, thus can respond the inquiry request of user fast, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the structural representation of the information query system of the Web of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the information query method of the sing on web of the embodiment of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage more become apparent, and are described in detail specific embodiments of the invention below in conjunction with accompanying drawing.
As shown in Figure 1, the embodiment of the present invention provides a kind of information query system of sing on web, comprise Web server 101 and database 102, the information query system of sing on web also comprises static page release module 103 and static page customized module 104, static page release module 103 is connected with static page customized module 104, static page release module 103, for when query-related information changes in database 102, generates static page, is stored in Web server 101; Static page customized module 104 for send according to user inquiry request time, static page is generated the static page of customization; The static page of customization is sent to user by Web server.
Can continue to consult Fig. 1, when reality is implemented, the user more than one usually of access Web server 101, in Fig. 1 with " user 1 ", " user 2 " ..., " user N " represent, when different user accesses the different query page of Web server 101, each user is different for the general also possibility of inquiry request of each query page.If rely on the mode of dynamic page conventionally completely, need from database, obtain data and generate corresponding web page, when while accessed web page user too much, processing each user request needs transmission order to obtain data from database, database will be caused to run slow, thus cause response speed excessively slow, have a strong impact on Consumer's Experience; And in the present embodiment, when Web server 101 is once detect that the information of the arbitrary query page corresponding to Web server 101 in database 102 changes, just can notify that static page release module 103 generates a static page for this query page, so when user proposes the inquiry request for this query page, this static page is returned to user by Web server 101, and without the need to accessing database 102, thus can respond the inquiry request of user fast, improve Consumer's Experience; If when the request content in the inquiry request of different user is different, request contents different separately in the inquiry request that can also send according to different user, by described static page customized module 104, this static page is modified, form the static page of customization, thus the query demand of different user can be met.
Therefore, in the present embodiment, static page release module generates a static page for each query page on Web server.
Particularly, the new static page that static page release module generates for a query page replaces existing static page.
Request content in the inquiry request that described static page customized module sends according to user, generates the static page of customization.
The information query method of sing on web comprises the following steps:
(1) information corresponding to a query page of Web server in database changes, and static page release module generates static page, is stored in Web server;
(2), when Web server receives the inquiry request of user to query page, inquiry request is sent to static page customized module;
(3) static page customized module is according to inquiry request, generates the static page of customization, and sends Web server to;
(4) static page of customization is returned to user by Web server.
In step (3), static page customized module is according to inquiry request, and the static page generating customization comprises the following steps: described static page customized module receives the described inquiry request of Web server transmission and the described static page of described static page release module generation; Described static page customized module parses the request content in described inquiry request; Described static page customized module based on static page described in described request content modification, to generate the static page of described customization.
In the embodiment of the present invention, various ways can be used to generate static page for described query page:
First kind of way uses ready-made plug-in unit, and such as: the mod_rewrite etc. of ISAPI_Rewrite, IISRewrite, ApacheHTTP server, they are all the rewrite engines based on regular expression parser exploitation.Their using method checks the help that they carry.
The second way is the codes implement of exploitation oneself, has specifically also been divided into several: 1, create FSO object, utilize this object that required content dynamic creation is generated html page in file; 2, utilize mould plate technique, the value of special code in template is replaced with the value accepted from list or Database field and generate html file; 3, Server.Transfer switch technology is used.
The third mode is the mode using HttpWebRequest requesting client, obtains and returns resource, generates static page.Generally such needs obtain web page contents, and other resource can be placed on the server, automatically loads.
4th kind of mode is in asp, be provided with IhttpModule interface.Ihttpmodule simply can be interpreted as that one in execution as .aspx, or in mvc before control/action, can be added the thing of our self-defining operation.During actual enforcement, only need to write so iHttpModule just passable, when user's first time request asp process, we can intercept this request in ihttpmodule, then get the html code asking specifically return, then we return these html to user, and preserve just now our html of getting in file, when user's request next time, we only need directly to return the html file that we have preserved.
Introduce an example below:
Repeat jsp or the sevlet page of form repeating data, each access is all constant, just with the position hidden in html file presence server, avoids repeatedly usage data library inquiry, causes the pressure of database.
Technology realizes: automatically JSP or servlet is generated as static html file, use the servlet that filtrator interception needs, during interception, judge whether file exists, if there is no, repack reponse, rewrite getWriter method, return a document flow, be written to and specify html, be then forwarded in this html.
CMSResponse covers getWriter method, returns a document flow, and notice that servlet container can call twice this method, the stream returned can only be one.
The information query system of sing on web provided by the invention and information query method, for different query page, when the relevant information in database changes, the static page of the releasing inquiry page; And Web server is when receiving the inquiry request of user, the static page generated is customized, and without the need to accessing database, thus can respond the inquiry request of user fast, improve Consumer's Experience.
More than describe preferred embodiment of the present invention in detail.Should be appreciated that those of ordinary skill in the art just design according to the present invention can make many modifications and variations without the need to creative work.Therefore, all technician in the art, all should by the determined protection domain of claims under this invention's idea on the basis of existing technology by the available technical scheme of logical analysis, reasoning, or a limited experiment.

Claims (6)

1. the information query system of a sing on web, comprise Web server and database, it is characterized in that, the information query system of described sing on web also comprises static page release module and static page customized module, described static page release module is connected with described static page customized module, described static page release module is used for when in described database, query-related information changes, and generates static page, is stored in described Web server; Described static page customized module is used for the inquiry request sent according to user, described static page is generated the static page of described customization; The static page of described customization is sent to described user by described Web server.
2. the information query system of sing on web as claimed in claim 1, it is characterized in that, described static page release module generates a static page for each query page on Web server.
3. the information query system of sing on web as claimed in claim 2, it is characterized in that, the new static page that described static page release module generates for a query page replaces existing static page.
4. the information query system of sing on web as claimed in claim 1, is characterized in that, the request content in the inquiry request that described static page customized module sends according to user, generates the static page of described customization.
5. an information query method for the information query system of the sing on web as described in any one of claims 1 to 3, is characterized in that, comprises the following steps:
(1) information corresponding to a query page of Web server in database changes, and static page release module generates static page, is stored in described Web server;
(2), when described Web server receives the inquiry request of user to described query page, described inquiry request is sent to static page customized module;
(3) the described static page that generates according to described inquiry request and described static page release module of described static page customized module, generates the static page of customization, and sends described Web server to;
(4) static page of described customization is returned to described user by described Web server.
6. information query method as claimed in claim 5, it is characterized in that, the described static page that static page customized module described in step (3) generates according to described inquiry request and described static page release module, the static page generating customization comprises:
Described static page customized module receives the described inquiry request of Web server transmission and the described static page of described static page release module generation;
Described static page customized module parses the request content in described inquiry request;
Described static page customized module based on static page described in described request content modification, to generate the static page of described customization.
CN201510559289.5A 2015-09-02 2015-09-02 Information inquiry system based on Web and information inquiry method based on Web Pending CN105117473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510559289.5A CN105117473A (en) 2015-09-02 2015-09-02 Information inquiry system based on Web and information inquiry method based on Web

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510559289.5A CN105117473A (en) 2015-09-02 2015-09-02 Information inquiry system based on Web and information inquiry method based on Web

Publications (1)

Publication Number Publication Date
CN105117473A true CN105117473A (en) 2015-12-02

Family

ID=54665463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510559289.5A Pending CN105117473A (en) 2015-09-02 2015-09-02 Information inquiry system based on Web and information inquiry method based on Web

Country Status (1)

Country Link
CN (1) CN105117473A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933817A (en) * 2015-12-29 2017-07-07 华为技术有限公司 A kind of content search method and apparatus, system based on B/S structures
CN112988151A (en) * 2021-03-08 2021-06-18 北京慧友云商科技有限公司 Engine for constructing native applet based on standard Web technology

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787001A (en) * 2005-12-16 2006-06-14 郑州华粮科技股份有限公司 Method for issuing quotations of network trade system
CN102098330A (en) * 2010-12-29 2011-06-15 东莞宇龙通信科技有限公司 Method, device and system for asynchronous transmission based on json data format

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787001A (en) * 2005-12-16 2006-06-14 郑州华粮科技股份有限公司 Method for issuing quotations of network trade system
CN102098330A (en) * 2010-12-29 2011-06-15 东莞宇龙通信科技有限公司 Method, device and system for asynchronous transmission based on json data format

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933817A (en) * 2015-12-29 2017-07-07 华为技术有限公司 A kind of content search method and apparatus, system based on B/S structures
CN106933817B (en) * 2015-12-29 2021-02-12 华为技术有限公司 Content query method, device and system based on B/S structure
CN112988151A (en) * 2021-03-08 2021-06-18 北京慧友云商科技有限公司 Engine for constructing native applet based on standard Web technology

Similar Documents

Publication Publication Date Title
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
US10356156B2 (en) Method and device for loading webpage
CN109145078B (en) The application page of the machine application is indexed
US8230046B2 (en) Setting cookies in conjunction with phased delivery of structured documents
CN101122921B (en) Method forming tree-shaped display structure based on ajax and html
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN104423991B (en) Webpage, the method and device that web data is provided are loaded in mobile terminal
CN104035753A (en) Double-WebView customized page display method and system
US20150278171A1 (en) Single page application authoring in a content management system
TW201800962A (en) Webpage file sending method, webpage rendering method and device and webpage rendering system
WO2014059182A1 (en) Testing an executable binary file using an injection proxy
CN103970855A (en) Device and method for processing data
CN104063401A (en) Webpage style address merging method and device
US20170004221A1 (en) Establishment of state representation of a web page represented in a web browser
KR20130105287A (en) Client application and web page integration
CN103399693A (en) Method and system for relocating menus after overall refreshment of single page
CN100590624C (en) Method for exhibiting multidimensional space data based on SOA structure
CN110737860A (en) rich text picture insertion method and device
CN108664191B (en) System access method and device
CN110020343B (en) Method and device for determining webpage coding format
CN105117473A (en) Information inquiry system based on Web and information inquiry method based on Web
CN106294760A (en) Sheet disposal method and server, client
CN111680247A (en) Local calling method, device, equipment and storage medium of webpage character string
WO2014019467A1 (en) A web browser operation method and system
CN107918552B (en) Light application calling method and device, client device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination