CN105279178A - Associated resource matching based webpage construction method - Google Patents
Associated resource matching based webpage construction method Download PDFInfo
- Publication number
- CN105279178A CN105279178A CN201410315233.0A CN201410315233A CN105279178A CN 105279178 A CN105279178 A CN 105279178A CN 201410315233 A CN201410315233 A CN 201410315233A CN 105279178 A CN105279178 A CN 105279178A
- Authority
- CN
- China
- Prior art keywords
- web
- current attribute
- web browser
- construction method
- information interaction
- 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.)
- Granted
Links
Abstract
The invention provides an associated resource matching based webpage construction method. The method comprises the steps that: a web browser sends an information interaction request based on a user instruction; a web server creates an associated conversation based on the received information interaction request, obtains at least one current attribute of the web browser by analyzing the information interaction request, constructs an information interaction response based on the at least one current attribute, and transmits the information interaction response to the web browser; and the web browser obtains associated static resources matched with the at least one current attribute from an external static resource pool based on the received information interaction response to construct and display a specific webpage. The associated resource matching based webpage construction method disclosed by the invention has high data processing efficiency and is easy to maintain and extend.
Description
Technical field
The present invention relates to webpage construction method, more specifically, relate to the webpage construction method based on correlated resources coupling.
Background technology
At present, along with the becoming increasingly abundant of class of business of the increasingly extensive and different field of cyber-net application, based on the particular community (language such as selected by it with web browser, this region residing for language indicating user or country) resource that is associated realizes the structure of webpage and display (such as, website internationalization) becomes more and more important.
In existing technical scheme, usually realize in the following way building based on the webpage of correlated resources coupling and showing: correlated resources and its configuration information (such as internationalized resources and configuration information thereof) are all stored in web server place, and after the information interaction request received from web browser in web server, corresponding correlated resources and configuration information are sent back this web browser to build and to show specific webpage.
But, there are the following problems for above-mentioned existing technical scheme: (1) is owing to being all stored in web server place by correlated resources and its configuration information, therefore the data buffer storage mechanism of web browser can not be made full use of, thus make to be difficult to realize concurrent processing and cause the data-handling efficiency of web server lower; (2) because web server needs to safeguard huge correlated resources and its configuration information, therefore cause the workload of exploitation and maintenance larger.
Therefore, there is following demand: provide and there is high data-handling efficiency and the webpage construction method based on correlated resources coupling being easy to maintenance and expansion.
Summary of the invention
In order to solve the problem existing for above-mentioned prior art, the present invention proposes and there is high data-handling efficiency and the webpage construction method based on correlated resources coupling being easy to maintenance and expansion.
The object of the invention is to be achieved through the following technical solutions:
Based on a webpage construction method for correlated resources coupling, the described webpage construction method based on correlated resources coupling comprises the following steps:
(A1) web browser sends information interaction request based on user instruction to web server;
(A2) described web server creates session associated with it based on the described information interaction request received, and at least one current attribute passing through to analyze described information interaction request and obtain described web browser, and send back described web browser based at least one current attribute tectonic information alternate acknowledge described and by described information interaction response thereupon;
(A3) what described web browser matched with at least one current attribute described from the acquisition of external static resource pool based on the response of received information interaction associates static resource to build and to show specific webpage.
In scheme disclosed above, preferably, described information interaction response comprises the mark value of instruction at least one current attribute described and the web web page template corresponding with at least one current attribute described.
In scheme disclosed above, preferably, one at least one current attribute described is the language of the current use of described web browser.
In scheme disclosed above, preferably, described step (A2) comprises further: described web server is stored as the environmental variance of current sessions after getting at least one current attribute described in described web browser, and the web web page template corresponding with at least one current attribute described is loaded in template engine and plays up, and be sent to described web browser thereupon being replied by described information interaction by the web web page template through playing up.
In scheme disclosed above, preferably, described step (A3) comprises further:
(B1) described web browser obtains the mark value of instruction at least one current attribute described and the web web page template corresponding with at least one current attribute described from the response of received information interaction;
(B2) described web browser based at least one current attribute described and/or the web web page template corresponding with at least one current attribute described from described external static resource pool obtain match with at least one current attribute described associate static resource to build and to show specific webpage.
In scheme disclosed above, preferably, described step (B2) comprises further: obtained association static resource is stored in internal memory by (1) described web browser; (2) described web browser is based on the assembly needed for the web web page template initialization current sessions corresponding with at least one current attribute described; (3) described web browser performs front-end business code and described assembly, and from internal memory, directly obtains described association static resource to build and to show specific webpage according to resource token.
In scheme disclosed above, alternatively, use described in CDN caching technology buffer memory and associate static resource, or push described association static resource by described external static resource pool.
In scheme disclosed above, preferably, the displaying attribute of the page that described web web page template definition is corresponding with at least one current attribute described, and described web web page template is converted to the page framework comprising business datum according to service logic by described template engine.
Webpage construction method based on correlated resources coupling disclosed in this invention has the following advantages: (1) is completed by web browser owing to obtaining the part work associating static resource, therefore the data buffer storage mechanism of web browser can be made full use of, thus be easy to realize concurrent processing and the data-handling efficiency of web server is improved; (2) because web server does not need to safeguard huge correlated resources, therefore the workload developed and safeguard is diminished, thus provide cost savings.
Accompanying drawing explanation
By reference to the accompanying drawings, technical characteristic of the present invention and advantage will be understood better by those skilled in the art, wherein:
Fig. 1 is according to an embodiment of the invention based on the process flow diagram of the webpage construction method of correlated resources coupling.
Embodiment
Fig. 1 is according to an embodiment of the invention based on the process flow diagram of the webpage construction method of correlated resources coupling.As shown in Figure 1, the webpage construction method based on correlated resources coupling disclosed in this invention comprises the following steps: that (A1) web browser sends information interaction request based on user instruction to web server; (A2) described web server creates session associated with it based on the described information interaction request received, and at least one current attribute passing through to analyze described information interaction request and obtain described web browser, and send back described web browser based at least one current attribute tectonic information alternate acknowledge described and by described information interaction response thereupon; (A3) what described web browser matched with at least one current attribute described from the acquisition of external static resource pool based on the response of received information interaction associates static resource to build and to show specific webpage.
Preferably, in the webpage construction method based on correlated resources coupling disclosed in this invention, described information interaction response comprises the mark value of instruction at least one current attribute described and the web web page template corresponding with at least one current attribute described.
Preferably, in the webpage construction method based on correlated resources coupling disclosed in this invention, one at least one current attribute described is the language (exemplarily, the language of the current use of described web browser is that system default language or user are from the language selected in language list) of the current use of described web browser.
Preferably, in the webpage construction method based on correlated resources coupling disclosed in this invention, described step (A2) comprises further: described web server is stored as the environmental variance of current sessions after getting at least one current attribute described in described web browser, and the web web page template (such as from database) corresponding with at least one current attribute described is loaded into template engine and plays up, and be sent to described web browser thereupon being replied by described information interaction by the web web page template through playing up.
Preferably, in the webpage construction method based on correlated resources coupling disclosed in this invention, described step (A3) comprises further: (B1) described web browser obtains the mark value of instruction at least one current attribute described and the web web page template corresponding with at least one current attribute described from the response of received information interaction; (B2) described web browser based at least one current attribute described and/or the web web page template corresponding with at least one current attribute described (such as according to the internationalized resources definition information that this web web page template comprises) from described external static resource pool obtain match with at least one current attribute described associate static resource to build and to show specific webpage.
Preferably, in the webpage construction method based on correlated resources coupling disclosed in this invention, described association static resource comprises the association static resource (the internationalization information such as needed for service logic, such as text, picture, style definitions etc.) needed for service logic.
Preferably, in the webpage construction method based on correlated resources coupling disclosed in this invention, described step (B2) comprises further: obtained association static resource is stored in internal memory by (1) described web browser; (2) described web browser is based on the assembly (comprising infrastructure component and Service Component) needed for the web web page template initialization current sessions corresponding with at least one current attribute described; (3) described web browser performs front-end business code and described assembly, and from internal memory, directly obtains described association static resource to build and to show specific webpage according to resource token (token).
Alternatively, in the webpage construction method based on correlated resources coupling disclosed in this invention, use described in CDN caching technology buffer memory and associate static resource, or push described association static resource by described external static resource pool (such as static resource server).
Preferably, in the webpage construction method based on correlated resources coupling disclosed in this invention, the displaying attribute (such as picture, pattern, internationalized resources definition information etc.) of the page that described web web page template definition is corresponding with at least one current attribute described, and described web web page template is converted to according to service logic the page framework (namely playing up described web web page template) comprising business datum by described template engine.
Therefore, webpage construction method based on correlated resources coupling disclosed in this invention has following advantages: (1) is completed by web browser owing to obtaining the part work associating static resource, therefore the data buffer storage mechanism of web browser can be made full use of, thus be easy to realize concurrent processing and the data-handling efficiency of web server is improved; (2) because web server does not need to safeguard huge correlated resources, therefore the workload developed and safeguard is diminished, thus provide cost savings.
Although the present invention is described by above-mentioned preferred implementation, its way of realization is not limited to above-mentioned embodiment.Should be realized that: when not departing from purport of the present invention and scope, those skilled in the art can make different changes and amendment to the present invention.
Claims (8)
1., based on a webpage construction method for correlated resources coupling, the described webpage construction method based on correlated resources coupling comprises the following steps:
(A1) web browser sends information interaction request based on user instruction to web server;
(A2) described web server creates session associated with it based on the described information interaction request received, and at least one current attribute passing through to analyze described information interaction request and obtain described web browser, and send back described web browser based at least one current attribute tectonic information alternate acknowledge described and by described information interaction response thereupon;
(A3) what described web browser matched with at least one current attribute described from the acquisition of external static resource pool based on the response of received information interaction associates static resource to build and to show specific webpage.
2. the webpage construction method based on correlated resources coupling according to claim 1, it is characterized in that, described information interaction response comprises the mark value of instruction at least one current attribute described and the web web page template corresponding with at least one current attribute described.
3. the webpage construction method based on correlated resources coupling according to claim 2, is characterized in that, one at least one current attribute described is the language of the current use of described web browser.
4. the webpage construction method based on correlated resources coupling according to claim 3, it is characterized in that, described step (A2) comprises further: described web server is stored as the environmental variance of current sessions after getting at least one current attribute described in described web browser, and the web web page template corresponding with at least one current attribute described is loaded in template engine and plays up, and be sent to described web browser thereupon being replied by described information interaction by the web web page template through playing up.
5. the webpage construction method based on correlated resources coupling according to claim 4, it is characterized in that, described step (A3) comprises further:
(B1) described web browser obtains the mark value of instruction at least one current attribute described and the web web page template corresponding with at least one current attribute described from the response of received information interaction;
(B2) described web browser based at least one current attribute described and/or the web web page template corresponding with at least one current attribute described from described external static resource pool obtain match with at least one current attribute described associate static resource to build and to show specific webpage.
6. the webpage construction method based on correlated resources coupling according to claim 5, it is characterized in that, described step (B2) comprises further: obtained association static resource is stored in internal memory by (1) described web browser; (2) described web browser is based on the assembly needed for the web web page template initialization current sessions corresponding with at least one current attribute described; (3) described web browser performs front-end business code and described assembly, and from internal memory, directly obtains described association static resource to build and to show specific webpage according to resource token.
7. the webpage construction method based on correlated resources coupling according to claim 5, is characterized in that, uses described in CDN caching technology buffer memory and associates static resource, or push described association static resource by described external static resource pool.
8. the webpage construction method based on correlated resources coupling according to claim 6, it is characterized in that, the displaying attribute of the page that described web web page template definition is corresponding with at least one current attribute described, and described web web page template is converted to the page framework comprising business datum according to service logic by described template engine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410315233.0A CN105279178B (en) | 2014-07-04 | 2014-07-04 | Based on the matched webpage construction method of correlated resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410315233.0A CN105279178B (en) | 2014-07-04 | 2014-07-04 | Based on the matched webpage construction method of correlated resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105279178A true CN105279178A (en) | 2016-01-27 |
CN105279178B CN105279178B (en) | 2018-11-27 |
Family
ID=55148201
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410315233.0A Active CN105279178B (en) | 2014-07-04 | 2014-07-04 | Based on the matched webpage construction method of correlated resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105279178B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110066676A1 (en) * | 2009-09-14 | 2011-03-17 | Vadim Kleyzit | Method and system for reducing web page download time |
CN102385580A (en) * | 2010-08-30 | 2012-03-21 | 北大方正集团有限公司 | Method and device for customizing webpage contents |
CN103714172A (en) * | 2013-12-31 | 2014-04-09 | 华为技术有限公司 | Page processing method, device and system |
-
2014
- 2014-07-04 CN CN201410315233.0A patent/CN105279178B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110066676A1 (en) * | 2009-09-14 | 2011-03-17 | Vadim Kleyzit | Method and system for reducing web page download time |
CN102385580A (en) * | 2010-08-30 | 2012-03-21 | 北大方正集团有限公司 | Method and device for customizing webpage contents |
CN103714172A (en) * | 2013-12-31 | 2014-04-09 | 华为技术有限公司 | Page processing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN105279178B (en) | 2018-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102185864B1 (en) | Server-side rendering method and system of native content for presentation | |
Brown et al. | Implementation patterns for microservices architectures | |
CN101398845B (en) | Multi-language binding method and system in web applications | |
CN102882974A (en) | Method for saving website access resource by website identification version number | |
CN103530160A (en) | Page loading method and device | |
CN103885764A (en) | Network media information display system, method, device and server | |
CN104063401A (en) | Webpage style address merging method and device | |
CN111694866A (en) | Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium | |
CN105022619A (en) | Code processing method and device | |
CN105634972A (en) | Method for improving access efficiency of Web client | |
CN107357810B (en) | A kind of method and system for landing page for exporting special topic | |
US10846358B1 (en) | Separated device detection architecture | |
CN112015468A (en) | Interface document processing method and device, electronic equipment and storage medium | |
US10944824B2 (en) | Method and apparatus for processing media type in rest software architecture | |
AU2016101498B4 (en) | Data Interchange System | |
US20200394059A1 (en) | Real-time localization | |
CN105045571A (en) | Novel WebGIS architecture | |
CN106919696B (en) | SEO site construction method and SEO request response method | |
CN106156291A (en) | The caching method of static resource and system thereof based on Localstroage | |
US20140331117A1 (en) | Application-based dependency graph | |
CN112181393A (en) | Front-end and back-end code generation method and device, computer equipment and storage medium | |
CN103793516B (en) | Method and device for obtaining URL icon | |
CN111026916A (en) | Text description conversion method and device, electronic equipment and storage medium | |
CN105279178A (en) | Associated resource matching based webpage construction method | |
CN109344217A (en) | A kind of WebGIS implementation method based on JavaScript and SVG |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |