CN103034504A - Application method and device of template website - Google Patents

Application method and device of template website Download PDF

Info

Publication number
CN103034504A
CN103034504A CN2013100020034A CN201310002003A CN103034504A CN 103034504 A CN103034504 A CN 103034504A CN 2013100020034 A CN2013100020034 A CN 2013100020034A CN 201310002003 A CN201310002003 A CN 201310002003A CN 103034504 A CN103034504 A CN 103034504A
Authority
CN
China
Prior art keywords
template
website
page request
accessing page
data
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
CN2013100020034A
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.)
HUNAN JINGQIAO NETWORK TECHNOLOGY Co Ltd
Original Assignee
HUNAN JINGQIAO NETWORK 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 HUNAN JINGQIAO NETWORK TECHNOLOGY Co Ltd filed Critical HUNAN JINGQIAO NETWORK TECHNOLOGY Co Ltd
Priority to CN2013100020034A priority Critical patent/CN103034504A/en
Publication of CN103034504A publication Critical patent/CN103034504A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an application method of a template website. The application method of the template website comprises the following steps: receiving a page access request sent by a client terminal, and acquiring data required by the page access request; transmitting the data required by the page access request to a preset parameter; according to the page access request, acquiring a website template corresponding to the page access request, and loading the website template; loading the preset parameter to the website template so as to load the data required by the page access request into the website template, and acquiring an application page of the website template; and sending the application page of the website template to the client terminal. By the application method, when a server receives the page access request sent by the client terminal, the data required by the page access request is only required to be returned to the website template through the matched parameter, so that a data returning process is simple, the response speed of the page access request is improved, and thus the page view of the website is increased.

Description

Application process and the device of a kind of template website
Technical field
The application relates to template website application, particularly application process and the device of a kind of template website.
Background technology
Present template is built a station and is adopted the label template mechanism of building a station, the content that the Server development personnel will show on the foreground is packaged into independently label, the foreground designer passes through the content of the label of understanding Server development personnel encapsulation, and the attribute of the label of definition encapsulation namely defines different attributes for same label in different templates.After the definition of the encapsulation of finishing label and tag attributes, namely finished template in the template that the label embedding of encapsulation is different and built a station.
After the website template that the applying label template mechanism of building a station is set up, when client terminal is initiated accessing page request to server, server need to be resolved the content of label in the template of website and the attribute of label, the data that need to website template back page request again after the attribute of the content of label and label in resolving the website template.Wherein, owing to the content of label in the template of website and the attribute complexity of label, so that the process of resolving is loaded down with trivial details, the accessing page request response speed is slow, thereby affects the visit capacity of website.
From said process, can find out, be badly in need of at present the application process of a kind of template website, simple with the server return data process that reaches the template website, the purpose of accessing page request fast response time.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides the application process of a kind of template website, to reach the speed that improves the accessing page request response, promotes the purpose of the visit capacity of website, and technical scheme is as follows:
The application process of a kind of template website comprises:
Receive the accessing page request that client terminal sends, and obtain the data that described accessing page request needs;
Transmit the data of described accessing page request needs to described parameter preset;
Obtain website template corresponding to described accessing page request and load described website template according to described accessing page request;
Described parameter preset is loaded on described website template, is loaded in the template of website with the data that accessing page request is needed, obtain the website template and use the page;
Send described website template and use the page to client terminal.
Preferably, use the NVelocity template engine parameter preset is loaded on described website template, be loaded in the template of website with the data that accessing page request is needed, obtain the website template and use the page.
The application apparatus of a kind of template website comprises:
The first processing unit is used for receiving the accessing page request that client terminal sends, and obtains the data that described accessing page request needs;
Transfer unit is used for transmitting data that accessing page request that described the first processing unit obtains needs to described parameter preset;
The second processing unit is used for obtaining website template corresponding to described accessing page request and loading described website template according to the accessing page request that described the first processing unit receives;
The 3rd processing unit is used for described parameter preset is loaded on the website template that described the second processing unit loads, and the data that need with the accessing page request that described the first processing unit is obtained are loaded in the template of website, obtains the website template and uses the page;
Transmitting element is used for sending the website template that described the 3rd processing unit obtains and uses the page to client terminal.
Preferably, described the 3rd processing unit specifically is used for using the NVelocity template engine parameter preset is loaded on described website template, is loaded in the template of website with the data that accessing page request is needed, and obtains the website template and uses the page.
Compared with prior art, the application's beneficial effect is:
The method that the application provides a kind of template to build a station receives the accessing page request that client terminal sends, and obtains the data that described accessing page request needs; Transmit the data of described accessing page request needs to described parameter preset; Obtain website template corresponding to described accessing page request and load described website template according to described accessing page request; Parameter preset is loaded on described website template, is loaded in the template of website with the data that accessing page request is needed, obtain the website template and use the page; Send described website template and use the page to client terminal.Therefore, server is when receiving the accessing page request of client terminal transmission, and the data that only need to accessing page request be needed by the parameter of coupling return to the website template and get final product, and the process of return data is simple, improve the speed of accessing page request response, thereby promoted the visit capacity of website.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, the accompanying drawing of required use was done to introduce simply during the below will describe embodiment, apparently, accompanying drawing in the following describes only is some embodiment of the application, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of process flow diagram of the application process of a kind of template website of providing of the application;
Fig. 2 is a kind of structural representation of the application apparatus of a kind of template website of providing of the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that obtains under the creative work prerequisite, all belong to the scope of the application's protection.
The application provides the application process of a kind of template website, at first receive the accessing page request that client terminal sends, and obtain the data that described accessing page request needs, next transmits the data of described accessing page request needs to described parameter preset, again obtain website template corresponding to described accessing page request and load described website template according to described accessing page request, then described parameter preset is loaded on described website template, be loaded in the template of website with the data that accessing page request is needed, obtain the website template and use the page, send at last described website template and use the page to client terminal.The application process that below will enumerate a kind of template website that embodiment provides the application is elaborated.
See also Fig. 1, it shows a kind of process flow diagram of the application process of a kind of template website that the application provides, and wherein, the present embodiment is the detailed process of setting forth the application of template website from the server side of website, can may further comprise the steps:
Step S11: receive the accessing page request that client terminal sends, and obtain the data that described accessing page request needs.
In the present embodiment, the accessing page request of the client terminal transmission of Website server reception is initiated at client terminal by page viewers.Server is after the accessing page request that receives the client terminal transmission, and server obtains all data that this accessing page request needs from database.
Step S12: transmit the data of described accessing page request needs to described parameter preset.
Parameter preset defines in template Website development process, parameter preset is known parameter for Website server supervisory routine and website template, and the parameter preset in the parameter preset in the Website server supervisory routine and the website template is corresponding, for example, the parameter preset of a title of definition is title in the Website server supervisory routine, and the parameter preset in the website template corresponding with this parameter preset title in the Website server supervisory routine also is title.Server is after obtaining the data that accessing page request needs, and the data that this accessing page request is needed are passed to the parameter preset in the Website server supervisory routine.
Step S13: obtain website template corresponding to described accessing page request and load described website template according to described accessing page request.
Server is after receiving accessing page request, retrieve the website template corresponding with this accessing page request according to this accessing page request, after retrieving, obtain website template corresponding to this accessing page request, after getting access to website template corresponding to this accessing page request, load website template corresponding to this accessing page request.After loading website template corresponding to this accessing page request, just can use website template corresponding to this accessing page request.
Wherein, the parameter preset in website template corresponding to this accessing page request is encapsulated in the label, and for example, the parameter preset title in the website template among the step S12 in for example is encapsulated in the label, and the label of encapsulation is { title}.
Step S14: described parameter preset is loaded on described website template, is loaded in the template of website with the data that accessing page request is needed, obtain the website template and use the page.
In the present embodiment, the data that the accessing page request that parameter preset in the Website server supervisory routine among the step S12 is corresponding needs pass to the packed label of parameter preset identical with this parameter preset title in the template of website, and the parameter preset of namely having finished among the step S12 is loaded on website template corresponding to accessing page request.After corresponding parameter preset receives the data of accessing page request needs in the template of website, the parameter preset of correspondence in the data replacement website template that accessing page request needs, be presented in website template corresponding to accessing page request, namely get access to the website template and use the page.
Wherein, can use the NVelocity template engine parameter preset is loaded on described website template, be loaded in the template of website with the data that accessing page request is needed, obtain the website template and use the page.
The detailed process of using the NVelocity template engine is: at first, the data that using the NVelocity template engine needs accessing page request are passed to the parameter preset in the Server Manager Daemon, for example, still the parameter preset title in for example is as example in the step S12, and the process that the data that using the NVelocity template engine needs accessing page request are passed to parameter preset is: the example that creates the NVelocity template engine; Definition parameter preset title is character string type and this parameter preset of initialization title; Transmit the actual value of parameter preset title to parameter preset title.The process that the data that wherein using the NVelocity template engine needs accessing page request are passed to parameter preset can be realized by following code:
Figure BDA00002704014100051
The data that using accessing page request that the NVelocity template engine will parameter preset receives in Server Manager Daemon needs pass to parameter preset corresponding with parameter preset in the Server Manager Daemon in the template of website, foreground, parameter preset in the template of website, foreground is after the data that receive the accessing page request needs, and the data that accessing page request needs just may be displayed on corresponding position in the template of website, foreground.For example, still in the step S12 parameter preset title in for example as example, parameter preset is encapsulated in the label in the template of website, foreground, and the label that this parameter preset is corresponding may reside in the optional position in the template of website, wherein the position can be by following coded representation,<div〉$ title}</div 〉, after the data that the parameter preset title accessing page request that parameter preset title receives in receiving Server Manager Daemon in this code needs, the data that the accessing page request that receives with parameter preset title in this code needs will be presented among this layer div.The data procedure for displaying that the procedure for displaying of the data of the accessing page request that other parameter presets except parameter preset title are corresponding and this parameter preset title are corresponding is identical.
Step S15: send described website template and use the page to client terminal.
After getting access to the website template application page corresponding to this accessing page request, server is used page with this website template and is sent to the client terminal that sends this accessing page request.Server is used the page with this website template and is sent to the response that the client terminal that sends this accessing page request has namely been finished this accessing page request.Client terminal uses the page viewers of client terminal just can see the needed page, i.e. the content of website after receiving this website template application page.
Website server is back to the website template by the parameter preset of definition with the data that accessing page request in the database needs among the application, obtain the website template and use the page, simplified the process that server is back to the website template data, improve the speed of accessing page request response, thereby promoted the visit capacity of website.
Corresponding with the embodiment of the application process of a kind of template website shown in Figure 1, the application provides a kind of structural drawing of the application apparatus of a kind of template website, see also Fig. 2, the application apparatus of template website comprises: the first processing unit 201,, the second processing unit 203, the 3rd processing unit 204 and transmitting element 205.
Wherein, the first processing unit 201 is used for receiving the accessing page request that client terminal sends, and obtains the data that described accessing page request needs.
In the present embodiment, the first processing unit 201 receives the accessing page request that client terminal sends, and the first processing unit 201 obtains all data that this accessing page request needs in the database after the accessing page request that receives the client terminal transmission.
Transfer unit 202 is used for transmitting data that accessing page request that described the first processing unit 201 obtains needs to described parameter preset.
The first processing unit 201 is after the data of obtaining the accessing page request needs, and the data that the accessing page request that transfer unit obtains the first processing unit needs are passed to the parameter preset in the Website server supervisory routine.
The second processing unit 203 is used for obtaining website template corresponding to described accessing page request and loading described website template according to the accessing page request that described the first processing unit receives.
The first processing unit 201 is after receiving accessing page request, the accessing page request that the second processing unit 203 receives according to the first processing unit 201 retrieves the website template corresponding with this accessing page request, after retrieving, obtain website template corresponding to this accessing page request, after getting access to website template corresponding to this accessing page request, load website template corresponding to this accessing page request.
The 3rd processing unit 204, be used for described parameter preset is loaded on the website template that described the second processing unit 203 loads, the data that need with the accessing page request that described the first processing unit 201 is obtained are loaded in the template of website, obtain the website template and use the page.
The data that the accessing page request that the 3rd processing unit 204 is corresponding with parameter preset needs pass to the packed label of parameter preset identical with this parameter preset title in the template of website, have finished that namely parameter preset is loaded on website template corresponding to accessing page request.After corresponding parameter preset receives the data of accessing page request needs in the template of website, with parameter preset corresponding in the data replacement website template of accessing page request needs, be presented in website template corresponding to accessing page request, get access to the website template and use the page.
Wherein, the 3rd processing unit 204 concrete application NVelocity template engines that are used for are loaded on described website template with parameter preset, are loaded in the template of website with the data that accessing page request is needed, and obtain the website template and use the page.
Transmitting element 205 is used for sending the website template that described the 3rd processing unit obtains and uses the page to client terminal.
The 3rd processing unit is after getting access to the website template application page corresponding to this accessing page request, and transmitting element is used page with this website template and is sent to the client terminal that sends this accessing page request.
Need to prove, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device class embodiment because itself and embodiment of the method basic simlarity, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
At last, also need to prove, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operational zone, and not necessarily requires or hint and have the relation of any this reality or sequentially between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, article or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
For the convenience of describing, be divided into various unit with function when describing above device and describe respectively.Certainly, when implementing the application, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the application or embodiment.
Application process and the device of above a kind of template website that the application is provided are described in detail, used specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment just is used for helping to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, the thought according to the application all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.

Claims (4)

1. the application process of a template website is characterized in that, comprising:
Receive the accessing page request that client terminal sends, and obtain the data that described accessing page request needs;
Transmit the data of described accessing page request needs to described parameter preset;
Obtain website template corresponding to described accessing page request and load described website template according to described accessing page request;
Described parameter preset is loaded on described website template, is loaded in the template of website with the data that accessing page request is needed, obtain the website template and use the page;
Send described website template and use the page to client terminal.
2. method according to claim 1 is characterized in that, uses the NVelocity template engine parameter preset is loaded on described website template, is loaded in the template of website with the data that accessing page request is needed, and obtains the website template and uses the page.
3. the application apparatus of a template website is characterized in that, comprising:
The first processing unit is used for receiving the accessing page request that client terminal sends, and obtains the data that described accessing page request needs;
Transfer unit is used for transmitting data that accessing page request that described the first processing unit obtains needs to described parameter preset;
The second processing unit is used for obtaining website template corresponding to described accessing page request and loading described website template according to the accessing page request that described the first processing unit receives;
The 3rd processing unit is used for described parameter preset is loaded on the website template that described the second processing unit loads, and the data that need with the accessing page request that described the first processing unit is obtained are loaded in the template of website, obtains the website template and uses the page;
Transmitting element is used for sending the website template that described the 3rd processing unit obtains and uses the page to client terminal.
4. device according to claim 3, it is characterized in that, described the 3rd processing unit specifically is used for using the NVelocity template engine parameter preset is loaded on described website template, is loaded in the template of website with the data that accessing page request is needed, and obtains the website template and uses the page.
CN2013100020034A 2013-01-05 2013-01-05 Application method and device of template website Pending CN103034504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100020034A CN103034504A (en) 2013-01-05 2013-01-05 Application method and device of template website

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100020034A CN103034504A (en) 2013-01-05 2013-01-05 Application method and device of template website

Publications (1)

Publication Number Publication Date
CN103034504A true CN103034504A (en) 2013-04-10

Family

ID=48021430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100020034A Pending CN103034504A (en) 2013-01-05 2013-01-05 Application method and device of template website

Country Status (1)

Country Link
CN (1) CN103034504A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138448A (en) * 2014-06-05 2015-12-09 北京畅游天下网络技术有限公司 Method and device for page test at front end
CN106156339A (en) * 2016-07-12 2016-11-23 泰康保险集团股份有限公司 Declaration form the management access method of system, Apparatus and system
WO2017193678A1 (en) * 2016-05-09 2017-11-16 京东方科技集团股份有限公司 Device control method and apparatus, and device control system
CN107451184A (en) * 2017-06-19 2017-12-08 阿里巴巴集团控股有限公司 Page display method and device, user equipment, storage medium
CN107729452A (en) * 2017-10-09 2018-02-23 武汉斗鱼网络科技有限公司 Webpage loading method, device, electronic equipment and computer-readable recording medium
CN112953892A (en) * 2021-01-26 2021-06-11 山东浪潮通软信息科技有限公司 Access authentication method and device of third-party system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259283A (en) * 2001-03-01 2002-09-13 Sanyo Electric Co Ltd Device and method for providing data and program therefor
CN101158896A (en) * 2007-08-31 2008-04-09 南京联创科技股份有限公司 Service assemblage based on MVC and method for page moulding development WEB platform
CN102662993A (en) * 2012-03-14 2012-09-12 北京神州数码思特奇信息技术股份有限公司 A method for providing page data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259283A (en) * 2001-03-01 2002-09-13 Sanyo Electric Co Ltd Device and method for providing data and program therefor
CN101158896A (en) * 2007-08-31 2008-04-09 南京联创科技股份有限公司 Service assemblage based on MVC and method for page moulding development WEB platform
CN102662993A (en) * 2012-03-14 2012-09-12 北京神州数码思特奇信息技术股份有限公司 A method for providing page data

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138448A (en) * 2014-06-05 2015-12-09 北京畅游天下网络技术有限公司 Method and device for page test at front end
CN105138448B (en) * 2014-06-05 2018-06-05 北京畅游天下网络技术有限公司 A kind of method and apparatus in the head end test page
WO2017193678A1 (en) * 2016-05-09 2017-11-16 京东方科技集团股份有限公司 Device control method and apparatus, and device control system
US10423139B2 (en) 2016-05-09 2019-09-24 Boe Technology Group Co., Ltd. Device control method and apparatus, and device control system
CN106156339A (en) * 2016-07-12 2016-11-23 泰康保险集团股份有限公司 Declaration form the management access method of system, Apparatus and system
CN106156339B (en) * 2016-07-12 2019-08-16 泰康保险集团股份有限公司 The access method of declaration form management system, apparatus and system
CN107451184A (en) * 2017-06-19 2017-12-08 阿里巴巴集团控股有限公司 Page display method and device, user equipment, storage medium
CN107729452A (en) * 2017-10-09 2018-02-23 武汉斗鱼网络科技有限公司 Webpage loading method, device, electronic equipment and computer-readable recording medium
CN107729452B (en) * 2017-10-09 2020-07-10 武汉斗鱼网络科技有限公司 Webpage loading method and device, electronic equipment and computer readable storage medium
CN112953892A (en) * 2021-01-26 2021-06-11 山东浪潮通软信息科技有限公司 Access authentication method and device of third-party system
CN112953892B (en) * 2021-01-26 2022-04-19 浪潮通用软件有限公司 Access authentication method and device of third-party system

Similar Documents

Publication Publication Date Title
CN103034504A (en) Application method and device of template website
US9158532B2 (en) Methods for managing applications using semantic modeling and tagging and devices thereof
US7991800B2 (en) Object oriented system and method for optimizing the execution of marketing segmentations
US20180191798A1 (en) Methods and systems for server-side rendering of native content for presentation
US7676557B1 (en) Dynamically adaptive portlet palette having user/context customized and auto-populated content
CA2386272A1 (en) Collaborative design
CN109190046A (en) Content recommendation method, device and content recommendation service device
CN102541535B (en) The method and system of publishing industry business architecture model
CN104899186A (en) Form generating and obtaining method and device
US20200226615A1 (en) Customer service representative dashboard application
US10313421B2 (en) Providing Odata service based on service operation execution flow
CN103064989A (en) Webpage storing and opening method and device
CN107341027A (en) The generation method and generating means of user interface
US11544346B2 (en) System and method for generation of starter websites
US9875278B2 (en) Modified data query function instantiations
CN106603727A (en) Method and device for integrating and accessing system data
CN103399776A (en) Creation method and system for reusable MOCK
US10015049B2 (en) Configuration of network devices in a network
CN106294417A (en) A kind of data reordering method, device and electronic equipment
CN104572981A (en) Web page caching method and mobile terminal device
CN101593176A (en) A kind of parameterized cross-platform part library system based on Web
CN107357605A (en) The method and apparatus for running installation file
CN105227599A (en) The recognition methods of Web application and device
CN104111768A (en) Interactive window, methods and systems for defining, quoting and synchronizing interactive windows
CN102387139B (en) Authority control method, system and device separated from application services

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20161116

C20 Patent right or utility model deemed to be abandoned or is abandoned