CN103488732A - Generation method and device of static pages - Google Patents

Generation method and device of static pages Download PDF

Info

Publication number
CN103488732A
CN103488732A CN201310425532.5A CN201310425532A CN103488732A CN 103488732 A CN103488732 A CN 103488732A CN 201310425532 A CN201310425532 A CN 201310425532A CN 103488732 A CN103488732 A CN 103488732A
Authority
CN
China
Prior art keywords
content data
web
web content
template
background server
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
CN201310425532.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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201310425532.5A priority Critical patent/CN103488732A/en
Publication of CN103488732A publication Critical patent/CN103488732A/en
Pending legal-status Critical Current

Links

Images

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 relates to a generation method and device of static pages. The method includes the steps of 1, storing web content data in a database, setting a web content data tag for the web content data, storing the web content data tag in a web background server, and producing a web template and storing the web template in the web background server; 2, allowing a template engine to acquire the web template from the web background server; 3, allowing the template engine to dynamically acquire the web content data tag from the web background server; 4, allowing the template engine to acquire the web content data from the database according to the web content tag; 5, allowing the template engine generate a static page through output flow according to the web template and the web content data. The method and device has the advantages that access load of portal websites in network can be reduced, speed of accessing the pages is increased, and user experience is improved.

Description

A kind of static page generation method and device
Technical field
The present invention relates to field, the Internet portal website, particularly a kind of static page generation method and device.
Background technology
Generally, a website or an application, its general type is, the browse request application server, application server is done a pile and is calculated rear data retransmission request storehouse, remake after database is received request after a pile is calculated data are returned to server, application server remakes after a pile is calculated data is returned to browser, and this is a normal process.But universal along with internet, the people of online is more and more, and online quantity of information is also more and more, and in these two increasing situations, it is more than two more and more that our application need to be supported.Then the calculating that our application server and database server are done is also more and more, but often our application server resource is limited, and the number of times that database accepts request p.s. is also limited.If utilize limited resource that the handling capacity of beating as far as possible is provided, a method: reduce calculated amount, shorten request flow process (reducing network io or hard disk io), at this time buffer memory and page staticize just can the great Zhan tricks.The ultimate principle of buffer memory and staticize is broken above-described normal process exactly, and in this normal process, any one link can be cut off.Request can directly be returned from buffer memory the inside channel data, request also can the access static page without database server, directly from application server, return, so not only saved the time, improved corresponding speed, and saved hardware resource, can serve more user by the limited hardware resource of let us.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of access pressure that can reduce the Internet portal website, improves static page generation method and the device of page access speed.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of static page generation method comprises the following steps:
Step 1: store web content data in database, and, for web content data arranges the web content data label, in the background server of website, the Web-Designing template also is stored in the background server of website by the web content data tag storage;
Step 2: template engine obtains web page template from the background server of website;
Step 3: template engine is Dynamic Acquisition web content data label from the background server of website;
Step 4: template engine obtains web content data according to the web page contents label from database;
Step 5: template engine, in conjunction with web page template and web content data, utilizes output stream to generate static page.
The invention has the beneficial effects as follows: the present invention can reduce the pressure of the server end caused because of the Webpage of high concurrency access the Internet portal website, improves the access speed of the page, promotes the user and experiences.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described web content data label comprises column label and content tab.
Further, described template engine is Freemarker.
Further, a kind of static page generating apparatus, comprise database, website background server, template engine;
Described database, for storing web content data;
Described website background server, for storing the web content data label corresponding with web content data, and the storage web page template;
Described template engine, for from the website background server, obtaining web page template, from website background server Dynamic Acquisition web content data label, obtain web content data according to the web page contents label from database, in conjunction with web page template and web content data, utilize output stream to generate static page.
Further, described web content data label comprises column label and content tab.
Further, described template engine is Freemarker.
The accompanying drawing explanation
Fig. 1 is the inventive method flow chart of steps;
Fig. 2 is apparatus of the present invention structural drawing.
In accompanying drawing, the list of parts of each label representative is as follows:
1, database, 2, the website background server, 3, template engine.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, be the inventive method flow chart of steps, Fig. 2 is apparatus of the present invention structural drawing.
Embodiment 1
A kind of static page generation method comprises the following steps:
Step 1: store web content data in database, and, for web content data arranges the web content data label, in the background server of website, the Web-Designing template also is stored in the background server of website by the web content data tag storage;
Step 2: template engine obtains web page template from the background server of website;
Step 3: template engine is Dynamic Acquisition web content data label from the background server of website;
Step 4: template engine obtains web content data according to the web page contents label from database;
Step 5: template engine, in conjunction with web page template and web content data, utilizes output stream to generate static page.
Described web content data label comprises column label and content tab.Described template engine is Freemarker.
A kind of static page generating apparatus, comprise database 1, website background server 2, template engine 3;
Described database 1, for storing web content data;
Described website background server 2, for storing the web content data label corresponding with web content data, and the storage web page template;
Described template engine 3, for from website background server 2, obtaining web page template, from website background server 2 Dynamic Acquisition web content data labels, obtain web content data according to the web page contents label from database 1, in conjunction with web page template and web content data, utilize output stream to generate static page.
Described web content data label comprises column label and content tab.Described template engine is Freemarker.
Freemarker provides a template.process (data, out) method, as long as a Page Template template is provided here, the file data that then will represent on template gets, and then both combine and just can generate a staticize page with output stream out.Data Dynamic gets from backstage, and then the template in conjunction with customization generates the staticize page, offers end-user access, thereby access these pages, can avoid request to be delivered to the database server aspect having saved the time, improved response speed.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (6)

1. a static page generation method, is characterized in that, comprises the following steps:
Step 1: store web content data in database, and, for web content data arranges the web content data label, in the background server of website, the Web-Designing template also is stored in the background server of website by the web content data tag storage;
Step 2: template engine obtains web page template from the background server of website;
Step 3: template engine is Dynamic Acquisition web content data label from the background server of website;
Step 4: template engine obtains web content data according to the web page contents label from database;
Step 5: template engine, in conjunction with web page template and web content data, utilizes output stream to generate static page.
2. static page generation method according to claim 1, it is characterized in that: described web content data label comprises column label and content tab.
3. static page generation method according to claim 1, it is characterized in that: described template engine is Freemarker.
4. a static page generating apparatus, is characterized in that: comprise database (1), website background server (2), template engine (3);
Described database (1), for storing web content data;
Described website background server (2), for storing the web content data label corresponding with web content data, and the storage web page template;
Described template engine (3), for from website background server (2), obtaining web page template, from website background server (2) Dynamic Acquisition web content data label, obtain web content data according to the web page contents label from database (1), in conjunction with web page template and web content data, utilize output stream to generate static page.
5. static page generating apparatus according to claim 4, it is characterized in that: described web content data label comprises column label and content tab.
6. static page generating apparatus according to claim 1, it is characterized in that: described template engine is Freemarker.
CN201310425532.5A 2013-09-17 2013-09-17 Generation method and device of static pages Pending CN103488732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310425532.5A CN103488732A (en) 2013-09-17 2013-09-17 Generation method and device of static pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310425532.5A CN103488732A (en) 2013-09-17 2013-09-17 Generation method and device of static pages

Publications (1)

Publication Number Publication Date
CN103488732A true CN103488732A (en) 2014-01-01

Family

ID=49828958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310425532.5A Pending CN103488732A (en) 2013-09-17 2013-09-17 Generation method and device of static pages

Country Status (1)

Country Link
CN (1) CN103488732A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838576A (en) * 2014-02-25 2014-06-04 杨红俊 Website establishing method and device
CN103995883A (en) * 2014-05-29 2014-08-20 河南中医学院 Master page file caching and Web page synthesizing method based on client-side browser
CN104317874A (en) * 2014-10-20 2015-01-28 北京锐安科技有限公司 Device and method for staticizing dynamic webpage
CN106021394A (en) * 2016-05-12 2016-10-12 福建南威软件有限公司 Website construction method and apparatus
CN106126663A (en) * 2016-06-28 2016-11-16 华为软件技术有限公司 page aggregation method and device
CN106844756A (en) * 2017-02-17 2017-06-13 山东浪潮云服务信息科技有限公司 A kind of lightweight contents management method
CN106886546A (en) * 2016-07-06 2017-06-23 阿里巴巴集团控股有限公司 The construction method and equipment of a kind of Data web site
CN107229653A (en) * 2016-03-25 2017-10-03 北大方正集团有限公司 Pseudo- static Web page generation method and device
CN107451184A (en) * 2017-06-19 2017-12-08 阿里巴巴集团控股有限公司 Page display method and device, user equipment, storage medium
CN107644044A (en) * 2016-07-22 2018-01-30 平安科技(深圳)有限公司 Content of pages generation method and device
CN107678736A (en) * 2017-10-09 2018-02-09 用友网络科技股份有限公司 A kind of business Page Template shows method, system and computer installation
CN108804555A (en) * 2018-05-22 2018-11-13 阿里巴巴集团控股有限公司 Agreement methods of exhibiting, device and electronic equipment
CN109165016A (en) * 2018-08-29 2019-01-08 郑州悉知信息科技股份有限公司 Webpage construction method and device
CN112559100A (en) * 2020-12-08 2021-03-26 北京航天云路有限公司 User-defined configuration dynamic webpage generation method
CN112711404A (en) * 2020-12-29 2021-04-27 河北志晟信息技术股份有限公司 Method for generating special topic webpage template once and automatically releasing special topic webpage
CN116578793A (en) * 2023-07-03 2023-08-11 广州趣米网络科技有限公司 Front-end page design method and system
CN117251661A (en) * 2023-11-16 2023-12-19 建信金融科技有限责任公司 Webpage file generation method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030110158A1 (en) * 2001-11-13 2003-06-12 Seals Michael P. Search engine visibility system
CN101354725A (en) * 2008-09-08 2009-01-28 中兴通讯股份有限公司 Method and apparatus for constructing and analyzing WAP page
CN102662993A (en) * 2012-03-14 2012-09-12 北京神州数码思特奇信息技术股份有限公司 A method for providing page data
CN103034496A (en) * 2012-12-13 2013-04-10 海南电网公司 Locally-static portal generation method based on template

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030110158A1 (en) * 2001-11-13 2003-06-12 Seals Michael P. Search engine visibility system
CN101354725A (en) * 2008-09-08 2009-01-28 中兴通讯股份有限公司 Method and apparatus for constructing and analyzing WAP page
CN102662993A (en) * 2012-03-14 2012-09-12 北京神州数码思特奇信息技术股份有限公司 A method for providing page data
CN103034496A (en) * 2012-12-13 2013-04-10 海南电网公司 Locally-static portal generation method based on template

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838576A (en) * 2014-02-25 2014-06-04 杨红俊 Website establishing method and device
CN103995883A (en) * 2014-05-29 2014-08-20 河南中医学院 Master page file caching and Web page synthesizing method based on client-side browser
CN104317874A (en) * 2014-10-20 2015-01-28 北京锐安科技有限公司 Device and method for staticizing dynamic webpage
CN104317874B (en) * 2014-10-20 2017-09-12 北京锐安科技有限公司 A kind of method and apparatus of dynamic web page static
CN107229653A (en) * 2016-03-25 2017-10-03 北大方正集团有限公司 Pseudo- static Web page generation method and device
CN107229653B (en) * 2016-03-25 2019-12-24 北大方正集团有限公司 Pseudo static webpage generation method and device
CN106021394A (en) * 2016-05-12 2016-10-12 福建南威软件有限公司 Website construction method and apparatus
CN106126663A (en) * 2016-06-28 2016-11-16 华为软件技术有限公司 page aggregation method and device
CN106886546A (en) * 2016-07-06 2017-06-23 阿里巴巴集团控股有限公司 The construction method and equipment of a kind of Data web site
CN107644044A (en) * 2016-07-22 2018-01-30 平安科技(深圳)有限公司 Content of pages generation method and device
CN106844756A (en) * 2017-02-17 2017-06-13 山东浪潮云服务信息科技有限公司 A kind of lightweight contents management method
CN107451184A (en) * 2017-06-19 2017-12-08 阿里巴巴集团控股有限公司 Page display method and device, user equipment, storage medium
CN107678736A (en) * 2017-10-09 2018-02-09 用友网络科技股份有限公司 A kind of business Page Template shows method, system and computer installation
CN108804555A (en) * 2018-05-22 2018-11-13 阿里巴巴集团控股有限公司 Agreement methods of exhibiting, device and electronic equipment
CN109165016A (en) * 2018-08-29 2019-01-08 郑州悉知信息科技股份有限公司 Webpage construction method and device
CN112559100A (en) * 2020-12-08 2021-03-26 北京航天云路有限公司 User-defined configuration dynamic webpage generation method
CN112711404A (en) * 2020-12-29 2021-04-27 河北志晟信息技术股份有限公司 Method for generating special topic webpage template once and automatically releasing special topic webpage
CN116578793A (en) * 2023-07-03 2023-08-11 广州趣米网络科技有限公司 Front-end page design method and system
CN116578793B (en) * 2023-07-03 2024-01-26 广州趣米网络科技有限公司 Front-end page design method and system
CN117251661A (en) * 2023-11-16 2023-12-19 建信金融科技有限责任公司 Webpage file generation method, device, computer equipment and storage medium
CN117251661B (en) * 2023-11-16 2024-02-27 建信金融科技有限责任公司 Webpage file generation method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103488732A (en) Generation method and device of static pages
US10572574B2 (en) Dynamic font subsetting using a file size threshold for an electronic document
CN109388766B (en) Page loading method and device
US20180191798A1 (en) Methods and systems for server-side rendering of native content for presentation
CN107808010A (en) A kind of pop-up page generation method, device, browser and storage medium
TWI592807B (en) Method and device for web style address merge
CN106897251B (en) Rich text display method and device
US20140215314A9 (en) Method for rearranging web page
CN105373615A (en) Page customization method and device
CN103699674A (en) Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
CN106611032A (en) Webpage pre-loading method and device
CN104601691A (en) Method and system for increasing loading speed of Web site resource
CN104462534A (en) Network information sharing method and device
US20120030562A1 (en) Device and method for generating customized webpages
CN106126693A (en) The sending method of the related data of a kind of webpage and device
CN110249324B (en) Maintaining session identifiers for content selection across multiple web pages
CN105653678A (en) Data chart subscription method and data chart subscription system
CN106326403A (en) Web page generating method and device
CN105404672A (en) Webpage data storage and operation system and method
US9176645B1 (en) Manipulating collections of items in a user interface
US8984028B2 (en) Systems and methods for storing data and eliminating redundancy
CN101419618B (en) In-text information displaying method and apparatus
CN104253835A (en) User behavior data acquisition method and system
CN111143732A (en) Webpage rendering method and device
CN103246656A (en) Method and server for generating static cached page

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20140101