Summary of the invention
The purpose of this invention is to provide a kind of page background dynamic refresh method and system of under the situation of interrupt system not, realizing.
The objective of the invention is to be achieved through the following technical solutions:
A kind of page background dynamic refresh method comprises:
A, template and corresponding a plurality of backgrounds thereof are kept in the web server with catalogue form, the storage address information in database is called required template and to background that should template, is generated the page from catalogue according to described template and background storage;
B, under the unbroken situation of system, other backgrounds of invoking page corresponding templates replace the existing background of pages, dynamically update page layout background.
The making of described template and a plurality of backgrounds corresponding with template, and be based on java server end page face JSP by the processing that template and background generate the page and realize, or realize jointly based on extendible mark language XML and extendible stylesheet language XSL.
Described template is used to be provided with the displaying contents of the page, the display position and the display mode of content.
Described steps A comprises:
In the same page, call a plurality of backgrounds simultaneously by described template, a plurality of backgrounds are arranged at the diverse location of the page respectively.
In described steps A, preserve the pre-review information of the corresponding background of template and template, consult template and background that pre-review information need to determine selection.
Described steps A comprises: after the template of determine to need selecting and background, call template and background generates the page from server according to the storage address information of the background of template and preservation.
Among the described step B, under the unbroken situation of system, the background of calling this template correspondence according to the storage address information of template and background from server replaces existing background, dynamically updates page layout background.
Described method also comprises:
Under the unbroken situation of system, in web server issue catalogue, add the new background that be used for dynamic page context update corresponding with template for template, new background is kept under the identical web server issue catalogue with the original background of template.
Described method is used for the EPG page layout background is dynamically updated.
A kind of page background dynamic refresh system comprises:
Template and background storage device are used for the background of storing template and template correspondence, and storage address information is provided,
The page generates and the context update device, and the background of calling template and template correspondence generates the page, under the unbroken situation of system for dynamically updating page layout background.
Described template and background storage device comprise:
Template and background content memory module are used for the form storing template with catalogue, the content of background;
Template and context address memory module are used for the storage address information of storing template, background content;
Background is added module, is used for adding the background corresponding with this template for template under the situation of not interrupt system work, and upgrading for background dynamics provides more more options.
The described page generates, the context update device comprises:
Masterplate and background calling module are used to initiate to specifying calling of template and background;
Page generation module, the template and the background that are used for masterplate and background calling module are called out generate the page;
The context update module is used for reselecting a background in the background of Page Template correspondence under the situation of not interrupt system work, is the new background of the page with this context update, carries out the dynamic page context update.As seen from the above technical solution provided by the invention, advantage of the present invention comprises:
Need not to the newly-increased any hardware and software of network system system can realize that the dynamic background of network gateway website webpage upgrades, non-interrupting service can not have any impact to user's use;
Can the user be freed from the page of dullness for the user provides more diversified network gateway site page;
Can show the different pages for the user of different regions, reach by the zone promotion page.
Embodiment
Core of the present invention is to pre-establish many cover templates and in a plurality of backgrounds of every cover template correspondence, it is kept in the web server with catalogue form, and concrete directory stores address in the web server is stored in the database with template and background.From the catalogue of server, call required template and background that should template is generated the page according to memory address; Under the unbroken situation of system, other backgrounds of invoking page template correspondence replace the existing background of the page, dynamically update page layout background.
More specifically say, the present invention formulates many cover templates for the page of the network gateway website that shows service content and in advance in a plurality of backgrounds of every cover template correspondence, it is kept in the web server with catalogue form, and concrete directory stores address in the web server is stored in the database with template and background.The user obtains the memory address of template and background by accessing database, calls required template and to background that should template, generate the page that is shown in user side from the catalogue of server according to memory address.Under the unbroken situation of system, other backgrounds of invoking page template correspondence replace the existing background of the page, dynamically update page layout background.Under the unbroken situation of system, can formulate new background equally, and be added in the web server stores catalogue, under the unbroken situation of system, can call the background of this new interpolation and carry out replacing background for template.
Below in conjunction with the specific embodiment of the invention accompanying drawing the present invention is elaborated.
Figure 2 shows that the EPG page background dynamic refresh schematic flow sheet of the embodiment of the invention.
As shown in Figure 2, the overall flow of page background dynamic refresh comprises in the embodiment of the invention:
Step 21, user send access request to EPG, comprise in the access request that service content query requests and EPG display styles are provided with request;
Step 22, EPG receive from sending the service content information inquiring request to database (DB) after user's the access request, require inquiry service content information from database;
Step 23, database be according to the request inquiry service content information of EPG, and service content information is sent to EPG;
Step 24, EPG send EPG page style to database request are set after receiving service content information, and the template and the background information of customer requirements satisfied in inquiry;
Template and background information that step 25, database will meet the requirement of User Page style are sent to EPG, realize calling the template core background;
Step 26, EPG are shown to the user with the service content information that inquires according to the page style of customer requirements;
Step 27, when the user need change existing page layout background, send the page layout background update request to EPG;
Step 28, EPG receive customer requirements is selected to satisfy in this request back in database according to the page layout background update request background;
The context update that step 29, EPG will newly select replaces former having powerful connections to the page;
Step 210, the page after the user side generation background upgrades.
The present invention is calling as shown in Figure 3 template and background when realizing that dynamic background upgrades:
Step 31, be that the page is formulated many cover templates, corresponding every cover template is formulated many cover backgrounds.
Step 32, will formulate good template, background paper is stored in the web server issue catalogue with catalogue form.
In step 33, the relevant information typing business management system with template and background paper after having stored template, background paper.
Described relevant information comprises storage address information and pre-review information.
Storage address information logging template, the memory address of background paper in web server issue catalogue;
Pre-review information is after presetting template and being used for the background of this template, and preview shows the outward appearance of the page that is generated by template and background, can predict the generation effect of this page before the real generation page by this information.
Step 34, select and call template and background, generate the page according to the address information of template and background and pre-review information.
At first, determine concrete a certain template and a certain background selected according to the page effect under pre-review information preview different templates, the background combination;
After template of determining to select and background, call the template and the background generation page according to its memory address.
Step 35, the page that generates is sent to the user, the user uses this page to select service content, the business of using EPG to provide.
Template that the present invention called and background are kept in the catalogue of web server with catalogue form in advance, and for satisfying the requirement that dynamic background upgrades, the preservation of template and background is shown in Figure 4.
As shown in the figure,, therefore need to make in advance the template of many cover different-styles, be the template 1 shown in the figure, template 2 owing to need show for the user provides the page of multiple style ... template n.
Template is used to be provided with the displaying contents of the page, the display position and the display mode of content.Owing to the difference that is provided with of each template, when same service content was used different templates, it had different styles in the user side page displayed.
For the literal on the page, the text description of same service content can appear at the page in the different pages that use different templates diverse location can also use different fonts to show respectively to identical literal;
For the background of the page, every cover template all comprises many covers and is the good background of this stencil design in advance, and every cover background all can be updated to according to this template and be provided with in the page of generation.
As shown in the figure, because for the many covers template that designs in advance, every cover template has the title of oneself, every cover template comprises a plurality of pages, and each page includes multiple background style again, and every kind of background style all is to realize under the support of a plurality of backgrounds.
Owing to finally belong to the background One's name is legions of many cover templates, and identical situation may appear in the background that belongs to different templates, therefore for the ease of the corresponding relation of clear and definite background and template, the background sectional lists need be deposited.Directory level stripe sequence from high to low is template, the page, background style, and background storage is below background style subdirectory.
Background under described multistage catalogue and the catalogue is stored in the web server.
As user before a selected cover is brought into use service from many covers template, because a plurality of webpages provide service for the user often, so the user can select background respectively for related a plurality of pages.At this moment, when the user was certain page configuration background, the user need enter this page subdirectory under the selected template directory, and then entered the background style subdirectory under the page directory, from background style subdirectory, select suitable background, background is presented in the page of generation.All pages that are followed successively by in this way under the template are selected background, have so just finished the background setting to selected template, obtain the whole background style of customer satisfaction system service page.
As shown in Figure 4, in using described method of storing with list mode, the title difference of each template directory; The title of the different pages that belongs to different templates is identical; Under page subdirectory, all background style subdirectory titles are all inequality, but it is identical to belong to the title of the background under the different background style subdirectory.Be in a ratio of all pages, background style and the background that belong to different templates and different titles all is set compares, the related title quantity of background reduces significantly in the method for the invention, is convenient to management and storage to background.
The operation principle of the invention described above is implemented based on the EPG of WEB mode, and at first the page with EPG divides group categories, and the page of each class is designed a kind of general style.
For the generation of the page, can use java server end page face (JSP, the Java Server Page) page to represent.
Figure 2 shows that EPG page background dynamic refresh schematic flow sheet of the present invention, show its operation principle, and the schematic diagram that the present invention uses in practice as shown in Figure 5.
The developer at first designs the template of some acquiescences, and the picture style title that template name and this template are comprised is entered into database by business management system (SMS, Service Management System) system.
The user opens an account by the SMS system to the business hall, and the account number that the account-opening person of user self or operator can club opens when opening an account is selected the picture style under a cover Page Template and this template.
The user uses the IPTV system by the account number of explaining clearly, sign in to EPG, the background controller of EPG system can read the template name and the background picture style title of account correspondence, user's the page dynamically is directed to server-side page (JSP, Java Server Page Java) Page Template under the particular category.Thereby be reached for the purpose that different users shows the different pages.
If operator need increase page style newly, only need template file be put into the WEB server of EPG and issue catalogue, and the information of template is got final product by SMS system input database according to developing the new template page of a cover in the such scheme.Whole process to user's use and operation flow without any influence.
When the user opens an account, generally can select area information, belong to certain sub-district in certain city such as a user, if with area information with the template associating information, can also realize showing the purpose of the EPG page so by the zone.Just the EPG page seen of the user of different regions also is different.
The present invention can realize by the JSP technology, also can realize that the background choice relation of the JSP page of the present invention as shown in Figure 6 by the XML+XSL technology.
JSP is a kind of technology of developing dynamic web page that SUN company proposes, the system development personnel are at above-mentioned every kind of page, design a JSP page and represent page layout, the many covers of design background picture is expressed page style, the jsp file title and the background picture title of each page are all fixed, the a plurality of JSP pages and the background picture that comprise above-mentioned all kinds just are called a cover Page Template, be stored in the catalogue with the template name name, the relative path that each file is deposited in the catalogue is also fixed.Many covers background picture in every cover Page Template leaves in a plurality of picture directories under the template directory, and picture directory is can express the name nominating of picture style.
Comprise background picture in the JSP page and the prospect literal is two-layer, utilize JSP dynamically to generate the characteristic of the page, under the situation of not changing code, can reach the purpose of change interface layout by the mode that adopts the different JSP pages to show; Perhaps under the same JSP page, reach the effect of dynamic replacing EPG look ﹠ feel with the mode of change background picture.
As shown in Figure 6, among many cover JSP pages, EPG can select a cover to show by background controller; In the same set of JSP page, the EPG background controller also can be controlled a cover of selecting in its many cover backgrounds and show.
The EPG background controller selects the specific practice of background as follows:
At first need page classifications with EPG, EPG is as the door of an IPTV/ business, its main purpose is showed video request program (VOD for the user exactly, Video On Demand), the resource of net cast and other value-added services, comprise the brief introduction, propagating poster of resource and concrete watch link.For each business, can be divided into the classification displayed page and the program presentation page.
The classification displayed page is mainly used to show concrete program category, is exactly to classify such as films such as swordsmen film, gun battle movies for the VOD program request; For net cast is exactly television channel classification such as CCTV, local broadcasting stations; It for other value-added services professional classification such as game class, news category.
The program presentation page is exactly concrete program introduction, such as " time " in the VOD program request, " king of comedy " etc.; " central authorities' one cover " " Phoenix Satellite TV " of net cast class etc.
Except the main above two class pages, EPG also needs some other auxiliary pages such as the prompting page of homepage, operating mistake.
After the page of EPG is classified, just the page of EPG can be organized into concrete, limited several pages, comprise: the classification page of the classification page of the classification page of homepage, program request class, program request class program pages, live class, live class program pages, value-added service class, value-added service class program pages, the operation indicating page etc.
As previously mentioned, the described EPG page of the embodiment of the invention can also be realized by the method for using XML and XSL technology simultaneously.
Extendible SGML (XML, eXtensible Markup Language) and extendible stylesheet language (XSL, Extensible Style Language) technology is in conjunction with finishing separating of data and demonstration, preserve data with XML, show the XML data carried by data with XSL, if realize, on the basis of such scheme, need to do following change with the XML+XSL technology:
Change the mode of developing Page Template with the JSP+ background, use the XSL+ background picture instead and develop Page Template;
In original scheme, the data that the EPG background controller transmits to the JSP Page Template are without any stylistic requirement, as long as consult with the JSP layer; But after adopting the XML+XSL technology, the data that pass to the XSL template must be the XML forms
Remaining uses and management process is consistent with the scheme of JSP, two kinds of schemes comparisons:
The scheme of JSP is fit to various browsers, and this is an advantage, and shortcoming is that EPG backstage key-course is not a standard interface with the interface between the JSP template, but the privately owned interface of developer's definition needs template development personnel docking port that certain understanding is arranged
In the XML+XSL scheme, XML is the standard interface of present industry, and this is an advantage, but the not every browser of XML can support, need the highest version of the browser of some main flows just can support the up-to-date standard of XML fully.
Figure 7 shows that the system schematic of the embodiment of the invention.
As shown in Figure 7, the described a kind of page background dynamic refresh of embodiment of the invention system is characterized in that, comprising:
Template and background storage device are used for the background of storing template and template correspondence, and address stored information is provided,
The page generates and the context update device, and the background of calling template and template correspondence generates the page, under the unbroken situation of system for dynamically updating page layout background.
Described template, background storage device comprise:
Template and background content memory module are used for the form storing template with catalogue, the content of background;
Template and context address memory module are used for the storage address information of storing template, background content.
The described page generates and the context update device comprises:
Page generation module is used for the background according to business demand selection template and this template correspondence, generates the page;
The context update module is used for reselecting a background in the background of Page Template correspondence under the situation of not interrupt system work, is the new background of the page with this context update, carries out the dynamic page context update;
Background is added module, is used for adding the background corresponding with this template for template under the situation of not interrupt system work, and upgrading for background dynamics provides more more options.
When system starts working, at first page generation module generates the page according to appointment template that calls out and background; After the page generated, new background was called according to user's request by system, carried out dynamic page and upgraded.
When carrying out the dynamic page renewal, at first template in page generation and the context update device and background calling module send the call request of carrying user's request according to user's demand to template and background storage device;
Call request enters template and context address memory module, inquires about the storage address information of whether storing user's specific context in this module;
If the storage address information that can find user's specific context in this module accesses specific context just according to this address information access templates and background content memory module from this module;
Specific context is called to the background of page generation and context update device adds in the module, and the context update that will newly call in this module is realized dynamic updating of page under the unbroken situation of system to the page.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.