CN109271162A - A kind of page generation method and device - Google Patents

A kind of page generation method and device Download PDF

Info

Publication number
CN109271162A
CN109271162A CN201811020725.1A CN201811020725A CN109271162A CN 109271162 A CN109271162 A CN 109271162A CN 201811020725 A CN201811020725 A CN 201811020725A CN 109271162 A CN109271162 A CN 109271162A
Authority
CN
China
Prior art keywords
page
configuration file
interface
content
target
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
CN201811020725.1A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201811020725.1A priority Critical patent/CN109271162A/en
Publication of CN109271162A publication Critical patent/CN109271162A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of page generation method and devices, server according to the page of client generate request to configuration file be to be write by preassigned General Purpose Interface description language, in this way, in the content that server writes the target interface description language that the Content Transformation of the configuration file can be identified at client, after obtaining the target configuration file converted out, so that it may generate target pages according to the target configuration file obtained after conversion.It can be seen that, developer is directed to a page, it only needs to develop a configuration file write using the General Purpose Interface description language, the configuration file can be converted to the configuration file for being suitble to different types of equipment by server, without when developing the configuration file of the page, it develops different configuration files respectively for different types of equipment, to reduce development amount, improves development efficiency.

Description

A kind of page generation method and device
Technical field
This application involves field of computer technology more particularly to a kind of page generation methods and device.
Background technique
With the development of computer technology, it can be used for showing that the type of the equipment of Webpage is also more and more, for example, can To be personal computer;It is also possible to mobile client;For bank's class product or function, bank self-aid apparatus can also be.
When generating the page, configuration file needed for needing to develop the generation page, and opening due to different types of equipment Hair ring border and running environment have differences, and therefore, for the same page, need to develop respectively for each type of equipment respectively Different configuration files.And different configuration files is developed respectively for different types of equipment, cause development amount big, opens Send out low efficiency.
Summary of the invention
In view of this, this application provides a kind of page generation method and device, to improve the development efficiency for generating the page.
To achieve the above object, on the one hand, this application provides a kind of page generation methods, comprising:
It receives the page that client is sent and generates request, the page generates request and generates target pages for requesting;
It is generated and is requested according to the page, from multiple configuration files for generating the different pages, obtained for generating The configuration file of the target pages;Content in the multiple configuration file is all made of pre-set General Purpose Interface and describes language Speech is write;
Determine the target interface description language that the client can identify;
Be the content write using the target interface description language by the Content Transformation in the configuration file, obtain by The target configuration file that the configuration file is converted out;
Target pages are generated according to the target configuration file.
Preferably, the configuration file include root element, paging partition on representation page block element and be used for The interface element for the page elements for including on representation page;At least one described piece of element is associated under one root element, At least one described interface element is associated under one described piece of element;
Correspondingly, the Content Transformation by the configuration file is in being write using target interface description language Hold, comprising:
Orient the root element in the configuration file;
At least one block element associated under the root element is converted to using the target interface description language respectively At least one block element write;
At least one associated interface element under each described piece of element is converted into using the target interface respectively At least one interface element that description language is write.
Preferably, the target interface description language includes the first object interface description for describing static page content Language and the second target interface description language for describing dynamic page content;
At least one block element associated under the root element is converted to using the target interface description language respectively At least one block element write, comprising:
It determines the block element for belonging to static page content under the root element in associated at least one block element and belongs to The block element of dynamic page content;
The block element for belonging to static page content described in determining is converted to using the first object interface description The block element that language is write;
The block element for belonging to dynamic page content described in determining is converted to be described using second target interface The block element that language is write;
At least one associated interface element under each described piece of element is converted to respectively and is retouched using the target interface Predicate says at least one interface element write, comprising:
Determine the Interface Element for belonging to static page content under each described piece of element at least one associated interface element Element and the interface element for belonging to dynamic page content;
The interface element for belonging to static page content described in determining is converted to be retouched using the first object interface Predicate says the interface element write;
The interface element for being used to belong to dynamic page content described in determining is converted to using second target circle The interface element that face description language is write.
Preferably, the configuration file generates in the following way:
Receive the patterned content of pages of user's input;
According to interface configurations specification predetermined, the patterned content of pages is converted to using pre-set The content of pages of General Purpose Interface description language description;
The content of pages converted out is stored as configuration file.
Preferably, the pre-set General Purpose Interface description language is expandable mark language XML.
Preferably, the configuration file is generated and is stored by product servers, and the acquisition is for generating the page object The configuration file in face includes: to obtain the configuration file from the product servers.
On the other hand, present invention also provides a kind of webpage generating devices, comprising:
Request reception unit, the page for receiving client transmission generate request, and the page generates request for asking Seek survival into target pages;
Acquiring unit, the page for being received according to the request reception unit generate request, from for generating In multiple configuration files of the different pages, the configuration file for generating the target pages is obtained;The multiple configuration file In content be all made of pre-set General Purpose Interface description language and write;
Language determination unit, the target interface description language that can be identified for determining the client;
Converting unit, the institute for determining the Content Transformation in the configuration file using the language determination unit The content that target interface description language is write is stated, the target configuration file converted out by the configuration file is obtained;
Page generating unit, the target configuration file for being obtained according to the converting unit generate the target pages.
As it can be seen that in the embodiment of the present application, server generates the configuration file that request arrives according to the page of client It is to be write by preassigned General Purpose Interface description language, in this way, in server by the Content Transformation of the configuration file at client The content for holding the target interface description language that can identify to write, after obtaining the target configuration file converted out, so that it may according to The target configuration file obtained after conversion generates target pages.Since target pages are the interface descriptions that can be identified according to client What the target configuration file that language is write generated, so can be shown in client.As it can be seen that developer is directed to a page, It only needs to develop a configuration file write using the General Purpose Interface description language, server can be by the configuration file Be converted to the configuration file for being suitble to different types of equipment, without develop the page configuration file when, for inhomogeneity The equipment of type develops different configuration files respectively, to reduce development amount, improves development efficiency.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only embodiments herein, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to the attached drawing of offer other Attached drawing.
A kind of structure composed schematic diagram for the system that the page that Fig. 1 shows the embodiment of the present application generates;
Fig. 2 shows a kind of flow diagrams of the page generation method of the embodiment of the present application;
Fig. 3 shows an example of configuration file in the embodiment of the present application;
Fig. 4 shows another flow diagram of page generation method in the embodiment of the present application;
Fig. 5 shows a kind of implementation process that configuration file is generated in the embodiment of the present application;
Fig. 6 shows a kind of implementation process of translation-profile in the embodiment of the present application;
Fig. 7 shows a kind of application scenarios schematic diagram of page generation method in the embodiment of the present application;
Fig. 8 shows a kind of composition schematic diagram of webpage generating device in the embodiment of the present application.
Specific embodiment
The page generation method and device of the embodiment of the present application are to generate dynamic page based on general configuration file, to subtract The development amount for developing the page less, improves development efficiency.
It needs to lead for the different configuration file of each type of equipment development respectively to solve to generate the same page The problem that the development amount of cause is big, development efficiency is low, in the embodiment of the present application, server are generated according to the page of client Request to configuration file be to be write by preassigned General Purpose Interface description language, in this way, in server by the configuration The content that the target interface description language that the Content Transformation of file can be identified at client is write obtains the target converted out configuration After file, so that it may generate target pages according to the target configuration file obtained after conversion.Since target pages are according to visitor What the target configuration file that the interface description language that family end can identify is write generated, so can be shown in client.As it can be seen that opening Hair personnel are directed to a page, it is only necessary to develop a configuration file write using the General Purpose Interface description language, service The configuration file can be converted to the configuration file for being suitble to different types of equipment by device, without matching in the exploitation page When setting file, different configuration files is developed respectively for different types of equipment, to reduce development amount, improve Development efficiency.
In order to make it easy to understand, the system being first applicable in the scheme of the application is introduced.Such as, referring to Fig. 1, it illustrates A kind of structure composed schematic diagram for system that a kind of page generation method of the application is applicable in.
It in the system shown in figure 1 include: client 10, server 20 and product servers 30.Client 10 and service It is communicated to connect between device 20 by network implementations, is communicated to connect between server 20 and product servers 30 by network implementations.
In the embodiment of the present application, which can show the page.Wherein, which can be various types of Equipment, such as desktop computer, bank self-aid apparatus that mobile client, personal computer, bank cashier use.Certainly, In practical applications, which can also be that any equipment for showing the page, the application are without restriction to this.
In a kind of possible realization, the client 10 include by system bus connect processor, graphics processor, Storage medium, memory, network interface, display screen and input equipment.
Wherein storage medium is stored with operating system.
Processor supports the operation of entire client 10 for providing calculating and control ability.
Graphics processor is at least providing the drawing ability of display interface.
Network interface is used to carry out network communication with server 20, such as sends page generation request to server, receives clothes The page code etc. that business device returns.
Display screen is used to show the page generated.
Input equipment is used to receive the order or data etc. of user's input, such as receives and generates page request parameter.
It shows screen and input equipment can be touch screen.
The page that can be shown on the client can be generated in server 20.
In a kind of possible realization, server 20 includes processor, the storage medium, memory connected by system bus And network interface.
Wherein, data needed for storage medium is stored with operating system and generates the page, such as configuration file and template file.
Processor is for providing calculating and control ability.
Network interface is used to communicate with client 10, product servers 30 by network connection, such as to product servers 30 Configuration file is requested, to 10 back page code of client etc..
Product servers 30 can be generated and save multiple configuration files for generating multiple pages.It is understood that Being is to generate for system includes product servers 30 to be illustrated by the page, but configuration file can also be by taking in Fig. 1 Business device 20 is generated and is saved, and in this case, can also not include product servers 30 in the system which generates.
Page generation method in the embodiment of the present application is introduced below with reference to flow chart.Such as, referring to fig. 2, it shows The flow diagram of the application page generation method one embodiment, the method for the present embodiment can be applied to above-mentioned Server 20, this method may include:
S201 receives the page that client is sent and generates request.
Wherein, the page generates request and generates target pages for requesting.In order to characterize the specific of the page for requesting to generate Content, which, which generates request, can carry page generation required parameter, and it may include the page that the page, which generates required parameter, The information such as mark, service parameter.
Wherein, the page generates request and is initiated by user by any type of client, and it is raw that client receives the page After request, which is generated into request and is sent to server.
It is understood that user client initiate the page generate request by way of can there are many, one kind can In the realization of energy, the information for the page that user generates needed for editing in the client, and by touching by the spy being arranged in client Determine key, generates request to initiate the page.In alternatively possible realization, user is shown on browser in client by clicking That shows generates the page link that required parameter matches with the page, so that initiating the page generates request.The application is not subject to this Limitation.
Request the page generated to can be any page for showing business function, as withheld generation under banking scene here Pay function pages, act on behalf of the fiscal fuction page, financial market function pages etc., the application is without restriction to this.
S202 is generated according to the page and is requested, and from multiple configuration files for generating the different pages, is obtained for giving birth to At the configuration file of target pages.
Wherein, the content in multiple configuration files, which is all made of, presets General Purpose Interface description language and writes.One kind can In the realization of energy, configuration file can be write by extensible markup language (eXtensible Markup Language, XML). Since XML is a kind of general interface description language, there is versatility by the configuration file that XML writes, be suitable for various types Server.
Wherein, the content of pages of the page is described in configuration file;The content of pages of the page described in configuration file Attribute including page elements included in the page and page elements, page elements such as text box, drop-down menu, text Etc..The attribute of page elements includes general-purpose attribute and extended attribute;General-purpose attribute is the element suitable for all elements type Attribute, such as it is mark, label, title, type, value, read-only;Extended attribute is the unique category of different types of page elements oneself Property, such as this page elements of text box, there is this extended attribute of multirow.
In order to verify the page generated can, the page elements for needing to carry out data check can also be defined in configuration file Data check type, such as be directed to this page elements of text box, the verification type of data can be character string, shaping numerical value, Floating type numerical value etc..
In addition, further including for providing the event scripts of page dynamic, such as the choosing of a combobox in configuration file The event of selecting triggers the linkage display of other coherent elements.
Wherein, the corresponding configuration file of a page pre-defines all pages and matches in the case where a kind of possible The corresponding relationship between file is set, configuration file can generate the generation carried in request according to the corresponding relationship and the page and ask Parameter is asked to determine.Such as, it includes page iden-tity that the page, which generates the generation required parameter carried in request, from all pages predetermined The corresponding relationship including the page iden-tity is found in corresponding relationship between face and configuration file, the configuration text in the corresponding relationship Part is exactly configuration file corresponding with the page.
S203 determines that sending the page generates the target interface description language that the client of request can identify;
The interface description language that different types of client is supported is possible to be different, and therefore, different terminals can be known Other interface description language is also different.The interface description language that client can identify is known as target interface and retouched by the embodiment of the present application Predicate speech.Such as, the target interface description language of bank cashier function identification includes hypertext markup language (HyperText Markup Language, HTML) and literal translation formula scripting language (JavaScript, JS).
S204, the Content Transformation in configuration file that will acquire are to be write using the target interface description language determined Content, obtain the target configuration file converted out by the configuration file got;
It is understood that the usual subregion of page elements on the page is shown for clearer displayed page content. In a kind of possible realization, a page includes at least one paging partition, includes at least one page in a paging partition Element.
It include the root element for representation page in configuration file corresponding with the page of above-mentioned multi-section display, for indicating The block element of paging partition on the page, the interface element for the page elements for including on representation page.Wherein, a root member It is associated at least one block element under element, is associated at least one interface element under a block element.
When generating the page based on above-mentioned configuration file, the root element of representation page is oriented from configuration file, is parsed It is rendered into a blank page afterwards.Associated each piece of element under the root element is traversed, by each piece of element wash with watercolours after parsing Dye is Tab pages of a blank or blank face plate in the blank page.Associated each interface element under each piece of element is traversed, Each interface element is rendered into the page elements in Tab pages of corresponding blank or blank face plate after parsing, to generate subregion Show the page of page elements.
Fig. 3 shows an example of profile layout, and two block elements, each piece of member are associated under a root element Two interface elements are associated under element.It correspondingly, include two subregions according to the page that the configuration file generates, in each subregion Including two page elements.It is understood that a kind of example of the only profile layout shown in Fig. 3.Practical application In, the block element of any number can be associated in profile layout under a root element, can be associated with and appoint under each piece of element The interface element for number of anticipating.
In addition, be also associated with version under a root element, version is used to indicate the version of description interface element language, with During upgrading backward compatible, virtual value such as 1.0,2.2 etc. from now on, default value can be 1.0.
Block general-purpose attribute element is also associated under one block element.Wherein, block general-purpose attribute element is used to indicate block member The attribute of element, such as title, the type of block element of block element.
General element and extensible element are also associated under one interface element.Wherein, general element is for indicating any page The page elements for all including in face, such as text;Extensible element is for indicating the page elements that specific webpage includes, such as text box Deng.
In the configuration file write by XML, in order to avoid conflicting with other elements, above-mentioned element is started with UI_, such as Root element is identified by UI_LAYOUT, and version is identified by UI_VERSION, and block element is identified by UI_GROUP, and interface element is by UI_ ELEMENT mark, the home blocks general-purpose attribute element such as UI_TYPE, UI_ID, UI_LABLE, UI_VALUE.
In the one kind for converting above-mentioned configuration file can be able to achieve, the root element in the configuration file is first oriented;Then At least one block element associated under the root element is converted to respectively can be known using the client for sending page generation request At least one block element that other target pages description language is write;Respectively by least one interface associated under each piece of element Element is converted at least one write by the target pages description language that the client that the transmission page generates request can identify Interface element, the target configuration file after being converted.
S205 generates target pages according to obtained target configuration file.
The language of target configuration file is that the target pages that the client of transmission page generation request can identify describe language Speech, so can be shown on the client according to the target pages that the target configuration file generates.
In the embodiment of the present application, server according to the page of client generate request to configuration file be by pre- First specified General Purpose Interface description language is write, in this way, can know the Content Transformation of the configuration file at client in server The content that other target interface description language is write, after obtaining the target configuration file converted out, so that it may after conversion Obtained target configuration file generates target pages.Since target pages are that the interface description language that can be identified according to client is compiled What the target configuration file write generated, so can be shown in client.As it can be seen that developer is directed to a page, it is only necessary to A configuration file write using the General Purpose Interface description language is developed, server can be converted to the configuration file It is suitble to the configuration file of different types of equipment, without being set for different types of when developing the configuration file of the page Back-up does not develop different configuration files, to reduce development amount, improves development efficiency.
Optionally, it in order to generate the page with pattern, in addition to obtaining configuration file, also needs to obtain Page Template, referring to figure 4, it illustrates a kind of flow diagrams of another embodiment of page generation method of the application, this method comprises:
S401 receives the page that client is sent and generates request, and the page generates request and generates target pages for requesting.
S402 is generated according to the page and is requested, and from multiple configuration files for generating the different pages, is obtained for giving birth to At the configuration file of target pages;
S403 obtains Page Template corresponding with the configuration file;
Wherein, the style sheet of the page, the style sheet of the page described in Page Template are described in Page Template The display format of Show Styles and data including the page elements, the Show Styles of page elements such as size, color, font Deng the display format ####.### of the display format of data such as designation number, the display format yyyyMMdd on date etc..
In concrete implementation, Page Template is generated and saved in server 20 or product clothes by developer as desired It is engaged on device 30, in the one kind for generating Page Template can be able to achieve, developer generates page using Freemarker template engine Face die plate such as defines CSS style and carrys out formatted pages content.
Wherein, the corresponding Page Template of a configuration file pre-defines configuration file in the case where a kind of possible Corresponding relationship between Page Template can be according to the correspondence after getting the configuration file for generating target pages Relationship determines Page Template.
S404 determines that sending the page generates the target interface description language that the client of request can identify;
S405, the Content Transformation in configuration file that will acquire are to be write using the target interface description language determined Content, obtain the target configuration file converted out by the configuration file got;
Step S404 and S405 may refer to the related introduction of front, repeat no more here.
S406 generates target pages according to obtained target configuration file and the Page Template got.
It is understood that step S403 can be any after getting the configuration file for generating target pages Moment executes, such as can obtain Page Template at once instantly get the configuration file for generating target pages.? Page Template can be obtained before generating target pages after obtaining target configuration file.The application does not do any limit to this It is fixed.
Optionally, above-mentioned configuration file is generated as desired by developer, below to generate configuration file mode into Row is introduced.In the one kind for generating configuration file can be able to achieve, developer generates configuration using visual page configuration tool File, visual page configuration tool are that patterned content of pages can be converted into being retouched by dynamic page description language by one kind The content of pages stated, and then generate the tool of configuration file, provides various patterned content of pages in the tool, for Family selection.In addition, the tool is also provided with the function of graphing content of pages.
In order to make it easy to understand, being situated between below to the realization process for generating configuration file using visual page configuration tool It continues.Referring to Fig. 5, it illustrates a kind of implementation processes for generating configuration file, comprising:
Step S501 receives the patterned content of pages of user's input.
It is understood that user can tablet pattern in several ways content of pages.In a kind of possible reality In existing, user selects multiple page elements from the various patterned page elements that visual page configuration tool provides, And the attribute of each page elements is defined, with the content of pages of tablet pattern.In alternatively possible realization, user oneself The patterned page elements drawn in visual page configuration tool, and the attribute of each page elements is defined, with input Patterned content of pages.
Step S502 is converted to the patterned content of pages received according to interface configurations specification predetermined Using the content of pages of pre-set General Purpose Interface description language, the content of pages converted out is stored as configuration file.
Visual page configuration tool is in the multiple graphical page elements and each page member for receiving user's input After the attribute of element, according to internal interface configurations specification predetermined, respectively by each patterned page elements and its attribute Multiple page elements and its attribute described by pre-set General Purpose Interface description language are converted to, it will be in the page that converted out Hold element and its attribute is stored as configuration file.In a kind of possible realization, pre-set General Purpose Interface description language is XML。
For example, what is generated is the corresponding configuration file of the page comprising text box element, from visual page configuration tool There is provided various patterned page elements in select text box element, and define text box element type be " textbox ", It is identified as " my_email ", label is " e-mail address ", value is " [email protected] ".Work is configured through visual page The configuration file obtained after tool conversion is as follows:
In order to make it easy to understand, the mode for converting out target configuration file to the configuration file by obtaining below is situated between in detail It continues.In a kind of possible realization, page control converter can be set in the server, to realize the conversion of configuration file. Page control converter is arranged in the server using Plugin Mechanism.When needing new page control converter, can develop One new plug-in unit, ensure that the scalability of page generation method.
Above-mentioned page control converter includes interface commutator, interface partition converter and interface element converter, wherein Interface commutator and interface partition converter are general converters, are suitable for various types of pages and generate server, each The interface element converter that design specialized is only needed on server, it reduce in various servers generate the page difficulty, Improve development efficiency.
Referring to Fig. 6, it illustrates a kind of implementation process for the conversion that configuration file is realized using page control converter, packets It includes:
S601 calls the root element in interface commutator bond-allocating file.
S602 calls interface partition converter respectively to convert at least one block element associated under the root element oriented For at least one block element write using target interface description language.
In a kind of possible realization, sends the page and generate the target interface description language packet that the client of request can identify Include the first object interface description language for describing static page content and the second target for describing dynamic page content Interface description language.
Wherein, it is divided from the type of content of pages, content of pages includes dynamic page content and static page content, is moved The attribute of the page elements such as the data shown in state content of pages such as drop-down menu, static page content such as text etc. are fixed Constant page elements.
In the embodiment of the present application, client is supported in the static page write using first object interface description language Hold, therefore, client can pass through the static page content in the first object interface description language identification configuration file.Such as, First object interface description language can be HTML.Correspondingly, client is supported to write using the second target interface description language Static page content.Such as, the second target interface description language can be JS.
Accordingly, it is desirable to two interface partition converter conversion block elements, as interface partition converter A and interface partition turn Parallel operation B, interface partition converter A and interface partition converter B have different output type parameters.It is associated under conversion root element At least one block element comprise determining that belong at least one block element static page content block element and belong to dynamic page The block element of face content;Converter A in interface partition is called to be converted to the block element for belonging to static page content using the first mesh The block element that the face description language of demarcating is write;Converter B in interface partition is called to convert the block element for belonging to dynamic page content For the block element write using the second target interface description language.
S503 calls interface element converter to be respectively converted at least one interface element associated under each piece of element At least one interface element write using target interface description language.
It include quiet for describing in the target interface description language that the client that the above-mentioned transmission page generates request can identify The first object interface description language of state content of pages and the second target interface description language for describing dynamic page content Realization in, transition interface element is also required to two interface element converters, as interface element converter C and interface element are converted Device D, interface element converter C and interface element converter D have different output type parameters.Convert each piece of element ShiShimonoseki At least one interface element of connection, which comprises determining that, belongs to static state at least one associated interface element under each described piece of element The interface element of content of pages and the interface element for belonging to dynamic page content;Call interface element converter C that will belong to static state The interface element of content of pages is converted to the interface element write using first object interface description language;Interface element is called to turn The interface element for belonging to dynamic page content is converted to the Interface Element write using the second target interface description language by parallel operation D Element.
It is understood that the configuration file in above-described embodiment can be generated and saved in server 20 by server 20 On, it can also be generated and saved on product servers by product servers 30, correspondingly, obtained for generating target pages Configuration file when, can obtain, can also be obtained from product servers 30 by server 20 from server 20.For the ease of Understand, the application scenarios generated below with reference to configuration file by service server are to the page generation method in the embodiment of the present application It is introduced, referring to Fig. 7, it illustrates a kind of flow diagrams of another embodiment of page generation method of the application, should Method includes:
S701, server 20 receive the page that client 10 is sent and generate request, and the page generates request and generates for requesting Target pages.
S702, server 20 generate request according to the page received, and by transmitting with the data of product servers 30 Channel obtains the configuration file and Page Template for generating target pages from product servers 30.
S703, server 20 determine the target interface description language that client 10 can identify.
S704, the Content Transformation in configuration file that server 20 will acquire are to describe language using determining target interface It says the content write, obtains the target configuration file converted out by the configuration file got.
S705, server 20 generate target pages according to obtained target configuration file and the Page Template got, The target pages are shown in client 10.
A kind of page generation method of corresponding the application, present invention also provides a kind of webpage generating devices.
Such as, referring to Fig. 8, it illustrates a kind of composed structure schematic diagram of webpage generating device one embodiment of the application, The device can be applied to the server being previously mentioned in the embodiment of the present application.The apparatus may include:
Request reception unit 801, the page for receiving client transmission generate request, and the page generates request and is used for Request generates target pages.
Acquiring unit 802, the page for being received according to the request reception unit 801 generate request, from In the multiple configuration files for generating the different pages, the configuration file for generating the target pages is obtained;It is the multiple to match It sets the content in file and is all made of pre-set General Purpose Interface description language and write.
Wherein, the pre-set General Purpose Interface description language can be expandable mark language XML.
Language determination unit 803, the target interface description language that can be identified for determining the client.
Converting unit 804, for being true using the language determination unit 803 by the Content Transformation in the configuration file The content that the fixed target interface description language is write, obtains the target configuration file converted out by the configuration file.
Page generating unit 805, the target configuration file for being obtained according to the converting unit 804 generate the target The page.
In one possible implementation, the configuration file includes root element, the page point on representation page The block element in area and the interface element for the page elements for including on representation page;It is associated at least under one root element One described piece of element is associated at least one described interface element under one described piece of element;
Correspondingly, the converting unit 804 specifically includes:
Root element converting unit, for orienting the root element in the configuration file;
Block element converting unit, for being respectively converted at least one block element associated under the root element using institute State at least one block element that target interface description language is write;
Interface element converting unit, for respectively converting at least one interface element associated under each described piece of element As at least one interface element write using the target interface description language.
In another possible implementation, the target interface description language includes for describing static page content First object interface description language and the second target interface description language for describing dynamic page content;
Described piece of element converting unit is specifically used for: determining and belongs in associated at least one block element under the root element The block element of static page content and the block element for belonging to dynamic page content;Belong to static page content described in determining Block element be converted to the block element write using the first object interface description language;Belong to dynamic described in determining The block element of content of pages is converted to the block element write using the second target interface description language.
Interface element converting unit is specifically used for: determining under each described piece of element at least one associated interface element Belong to the interface element of static page content and belongs to the interface element of dynamic page content;Belong to static state described in determining The interface element of content of pages is converted to the interface element write using the first object interface description language;By what is determined The interface element for belonging to dynamic page content is converted to the boundary write using the second target interface description language Surface element.
In another possible implementation, described device further includes configuration file generation unit, for receiving user The patterned content of pages of input;And according to interface configurations specification predetermined, the patterned content of pages is turned It is changed to the content of pages using the description of pre-set General Purpose Interface description language, the content of pages converted out is stored as configuring File.Wherein, the pre-set General Purpose Interface description language can be expandable mark language XML.
In another possible implementation, the acquiring unit 802 is specifically used for from generating and store the configuration The product servers of file obtain the configuration file.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.
The above is only the preferred embodiment of the present invention, it is noted that those skilled in the art are come It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (10)

1. a kind of page generation method characterized by comprising
It receives the page that client is sent and generates request, the page generates request and generates target pages for requesting;
It is generated and is requested according to the page, from multiple configuration files for generating the different pages, obtained described for generating The configuration file of target pages;Content in the multiple configuration file is all made of pre-set General Purpose Interface description language and compiles It writes;
Determine the target interface description language that the client can identify;
It is the content write using the target interface description language by the Content Transformation in the configuration file, obtains by described The target configuration file that configuration file is converted out;
Target pages are generated according to the target configuration file.
2. page generation method according to claim 1, which is characterized in that the configuration file includes root element, is used for The block element of paging partition on representation page and the interface element for the page elements for including on representation page;Described in one It is associated at least one described piece of element under root element, is associated at least one described interface element under a described piece of element;
Correspondingly, the Content Transformation by the configuration file is the content write using target interface description language, packet It includes:
Orient the root element in the configuration file;
At least one block element associated under the root element is converted to respectively and is write using the target interface description language At least one block element;
At least one associated interface element under each described piece of element is converted into respectively and is described using the target interface At least one interface element that language is write.
3. page generation method according to claim 2, which is characterized in that the target interface description language includes being used for It describes the first object interface description language of static page content and the second target interface for describing dynamic page content is retouched Predicate speech;
At least one block element associated under the root element is converted to respectively and is write using the target interface description language At least one block element, comprising:
It determines the block element for belonging to static page content under the root element in associated at least one block element and belongs to dynamic The block element of content of pages;
The block element for belonging to static page content described in determining is converted to using the first object interface description language The block element write;
The block element for belonging to dynamic page content described in determining is converted to using the second target interface description language The block element write;
At least one associated interface element under each described piece of element is converted to respectively, language is described using the target interface Say at least one interface element write, comprising:
Determine belong at least one associated interface element under each described piece of element static page content interface element and Belong to the interface element of dynamic page content;
The interface element for belonging to static page content described in determining is converted to using the first object interface description language Say the interface element write;
The interface element for being used to belong to dynamic page content described in determining is converted to be retouched using second target interface Predicate says the interface element write.
4. page generation method according to claim 1, which is characterized in that the configuration file is given birth in the following way At:
Receive the patterned content of pages of user's input;
According to interface configurations specification predetermined, the patterned content of pages is converted to using pre-set general The content of pages of interface description language description;
The content of pages converted out is stored as configuration file.
5. page generation method according to claim 1 or 4, which is characterized in that the pre-set General Purpose Interface is retouched Predicate speech is expandable mark language XML.
6. page generation method according to claim 1, which is characterized in that the configuration file is generated by product servers And store, the configuration file of the acquisition for generating the target pages include: from the product servers obtain described in match Set file.
7. a kind of webpage generating device characterized by comprising
Request reception unit, the page for receiving client transmission generate request, and the page generates request for that please seek survival At target pages;
Acquiring unit, the page for being received according to the request reception unit generate request, from for generating difference In multiple configuration files of the page, the configuration file for generating the target pages is obtained;In the multiple configuration file Content is all made of pre-set General Purpose Interface description language and writes;
Language determination unit, the target interface description language that can be identified for determining the client;
Converting unit, for being the mesh determined using the language determination unit by the Content Transformation in the configuration file The content that the face description language of demarcating is write obtains the target configuration file converted out by the configuration file;
Page generating unit, the target configuration file for being obtained according to the converting unit generate the target pages.
8. webpage generating device according to claim 7, which is characterized in that the configuration file includes root element, is used for The block element of paging partition on representation page and the interface element for the page elements for including on representation page;Described in one It is associated at least one described piece of element under root element, is associated at least one described interface element under a described piece of element;
Correspondingly, the converting unit specifically includes:
Root element converting unit, for orienting the root element in the configuration file;
Block element converting unit, for being respectively converted at least one block element associated under the root element using the mesh At least one block element that the face description language of demarcating is write;
Interface element converting unit, for being respectively converted at least one associated interface element under each described piece of element At least one interface element write using the target interface description language.
9. webpage generating device according to claim 7, which is characterized in that further include configuration file generation unit, be used for Receive the patterned content of pages of user's input;And according to interface configurations specification predetermined, by the patterned page Face Content Transformation is the content of pages using the description of pre-set General Purpose Interface description language;The content of pages converted out is deposited Storage is configuration file.
10. webpage generating device according to claim 7, which is characterized in that the acquiring unit is specifically used for from generation And the product servers for storing the configuration file obtain the configuration file.
CN201811020725.1A 2018-09-03 2018-09-03 A kind of page generation method and device Pending CN109271162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811020725.1A CN109271162A (en) 2018-09-03 2018-09-03 A kind of page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811020725.1A CN109271162A (en) 2018-09-03 2018-09-03 A kind of page generation method and device

Publications (1)

Publication Number Publication Date
CN109271162A true CN109271162A (en) 2019-01-25

Family

ID=65187401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811020725.1A Pending CN109271162A (en) 2018-09-03 2018-09-03 A kind of page generation method and device

Country Status (1)

Country Link
CN (1) CN109271162A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597513A (en) * 2019-09-18 2019-12-20 重庆紫光华山智安科技有限公司 WEB interface generation method and related device
CN110633081A (en) * 2019-08-23 2019-12-31 北京浪潮数据技术有限公司 Page generation method and device
CN110806866A (en) * 2019-11-05 2020-02-18 连连银通电子支付有限公司 Generation method and device of front-end management system
CN111078339A (en) * 2019-11-29 2020-04-28 苏宁云计算有限公司 Interface element positioning method and device, computer equipment and storage medium
CN111240677A (en) * 2020-01-13 2020-06-05 浙江吉利汽车研究院有限公司 Robot visual interface generation method and device and computer storage medium
CN111984259A (en) * 2020-07-10 2020-11-24 浙江大搜车软件技术有限公司 Interface creating method, device, equipment and storage medium
CN112765509A (en) * 2021-01-27 2021-05-07 杭州新中大科技股份有限公司 Multi-platform front-end page automatic generation technology based on metadata model
CN113486282A (en) * 2021-07-23 2021-10-08 北京乐学帮网络技术有限公司 Page generation method and device
CN113805882A (en) * 2021-09-18 2021-12-17 上海波顿诺华智能科技有限公司 Method and device for developing application program, electronic equipment and storage medium
WO2022042162A1 (en) * 2020-08-25 2022-03-03 华为技术有限公司 Method and apparatus for implementing user interface

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983958A (en) * 2006-04-23 2007-06-20 华为技术有限公司 Method for generating two set of network administration systems
CN101246494A (en) * 2008-03-19 2008-08-20 腾讯科技(深圳)有限公司 Internet web page conversion method, system and equipment
CN101938525A (en) * 2010-10-09 2011-01-05 安和创新科技(北京)有限公司 Subscribed/pushed cache mechanism based system and method for wireless enterprise application
CN102750152A (en) * 2012-06-21 2012-10-24 新浪网技术(中国)有限公司 Method and device of application for generating a plurality of programming languages based on descriptive language
CN103870266A (en) * 2012-12-12 2014-06-18 杭州新世纪电子科技有限公司 Method and system for generating page
CN104778285A (en) * 2015-05-12 2015-07-15 成都广达电子股份有限公司 XML-based WEB service system and working method thereof
CN105095449A (en) * 2015-07-27 2015-11-25 福州盈展信息技术有限公司 Method for converting HTML webpage to mobile terminal page
CN108255914A (en) * 2017-09-05 2018-07-06 深圳壹账通智能科技有限公司 webpage generating method and application server

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983958A (en) * 2006-04-23 2007-06-20 华为技术有限公司 Method for generating two set of network administration systems
CN101246494A (en) * 2008-03-19 2008-08-20 腾讯科技(深圳)有限公司 Internet web page conversion method, system and equipment
CN101938525A (en) * 2010-10-09 2011-01-05 安和创新科技(北京)有限公司 Subscribed/pushed cache mechanism based system and method for wireless enterprise application
CN102750152A (en) * 2012-06-21 2012-10-24 新浪网技术(中国)有限公司 Method and device of application for generating a plurality of programming languages based on descriptive language
CN103870266A (en) * 2012-12-12 2014-06-18 杭州新世纪电子科技有限公司 Method and system for generating page
CN104778285A (en) * 2015-05-12 2015-07-15 成都广达电子股份有限公司 XML-based WEB service system and working method thereof
CN105095449A (en) * 2015-07-27 2015-11-25 福州盈展信息技术有限公司 Method for converting HTML webpage to mobile terminal page
CN108255914A (en) * 2017-09-05 2018-07-06 深圳壹账通智能科技有限公司 webpage generating method and application server

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633081A (en) * 2019-08-23 2019-12-31 北京浪潮数据技术有限公司 Page generation method and device
CN110597513B (en) * 2019-09-18 2020-11-10 重庆紫光华山智安科技有限公司 WEB interface generation method and related device
CN110597513A (en) * 2019-09-18 2019-12-20 重庆紫光华山智安科技有限公司 WEB interface generation method and related device
CN110806866A (en) * 2019-11-05 2020-02-18 连连银通电子支付有限公司 Generation method and device of front-end management system
CN111078339B (en) * 2019-11-29 2022-11-11 苏宁云计算有限公司 Interface element positioning method and device, computer equipment and storage medium
CN111078339A (en) * 2019-11-29 2020-04-28 苏宁云计算有限公司 Interface element positioning method and device, computer equipment and storage medium
CN111240677A (en) * 2020-01-13 2020-06-05 浙江吉利汽车研究院有限公司 Robot visual interface generation method and device and computer storage medium
CN111240677B (en) * 2020-01-13 2023-09-05 浙江吉利汽车研究院有限公司 Method and device for generating visual interface of robot and computer storage medium
CN111984259A (en) * 2020-07-10 2020-11-24 浙江大搜车软件技术有限公司 Interface creating method, device, equipment and storage medium
WO2022042162A1 (en) * 2020-08-25 2022-03-03 华为技术有限公司 Method and apparatus for implementing user interface
CN112765509A (en) * 2021-01-27 2021-05-07 杭州新中大科技股份有限公司 Multi-platform front-end page automatic generation technology based on metadata model
CN113486282A (en) * 2021-07-23 2021-10-08 北京乐学帮网络技术有限公司 Page generation method and device
CN113805882A (en) * 2021-09-18 2021-12-17 上海波顿诺华智能科技有限公司 Method and device for developing application program, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109271162A (en) A kind of page generation method and device
US11561846B2 (en) API notebook tool
US20210109934A1 (en) Configurable and incremental database migration framework for heterogeneous databases
CN107872437B (en) Method, device and server for service request
CN106991154A (en) Webpage rendering intent, device, terminal and server
CN109683998A (en) Internationalize implementation method, device and system
US20090265368A1 (en) Automatic generation of user interfaces
CN110362372A (en) Page translation method, device, medium and electronic equipment
US8756407B2 (en) Configuration rule prototyping tool
CN101615177A (en) At structural self-defined report implementation method of server/browser and device
JP5677319B2 (en) Web-based diagram visual extensibility
CN109787974A (en) Message data stream generating method, device, computer equipment and storage medium
EP3570170A1 (en) Error detection method and apparatus for transaction system, storage medium and computer device
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN113382083A (en) Webpage screenshot method and device
CN111090434B (en) Page display method and device for custom column
CN113010332A (en) Remote service calling method, device, equipment and storage medium
CN113535749A (en) Query statement generation method and device
CN103150172A (en) Method and equipment for realizing individual scene
CN111680247B (en) Local calling method, device and equipment of webpage character strings and storage medium
US20060248443A1 (en) System and method for exporting spreadsheet data
CN106815010A (en) A kind of method and device of operating database
CN114968235A (en) Page form generation method and device, computer equipment and storage medium
CN111596828B (en) cookie synchronization method, device and computer readable storage medium
CN114391151A (en) Enhanced natural language generation platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20190125