CN108255914A - webpage generating method and application server - Google Patents

webpage generating method and application server Download PDF

Info

Publication number
CN108255914A
CN108255914A CN201710790165.7A CN201710790165A CN108255914A CN 108255914 A CN108255914 A CN 108255914A CN 201710790165 A CN201710790165 A CN 201710790165A CN 108255914 A CN108255914 A CN 108255914A
Authority
CN
China
Prior art keywords
webpage
web page
current web
configuration file
generating method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710790165.7A
Other languages
Chinese (zh)
Other versions
CN108255914B (en
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201710790165.7A priority Critical patent/CN108255914B/en
Publication of CN108255914A publication Critical patent/CN108255914A/en
Application granted granted Critical
Publication of CN108255914B publication Critical patent/CN108255914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of webpage generating method, the method includes:The configuration information of current web page is received, and preserve into webpage configuration file by the editing interface of webpage configuration file;When receiving webpage and showing order, the webpage configuration file is loaded, and obtain the configuration information of the current web page preserved in the webpage configuration file;The corresponding public module of current web page is called to show operation to current web page progress page layout operation and parameter;After the completion of page layout operation and the parameter show operation, determine that current web page generation finishes.The present invention also provides a kind of application servers.Application server and webpage generating method provided by the invention can improve the development efficiency and maintainability of webpage, and make the non-programmed personnel for not having development ability that can also develop the webpage of oneself.

Description

Webpage generating method and application server
Technical field
The present invention relates to field of communication technology more particularly to a kind of webpage generating methods and application server.
Background technology
Existing release is supplied to user arbitrarily to customize the product for the website for meeting oneself specification, has run two big disadvantages End:
1. written in code is extremely difficult, all programs are all write in a manner of non-obstruction, to be ready outside company customization from The personnel of own flow bring sizable trouble.
2. code security control is bad, there are a large amount of security breaches, hacker can be stolen a lot by XSS attack User information.
Invention content
In view of this, the present invention proposes a kind of webpage generating method and application server, can improve the exploitation effect of webpage Rate and maintainability, and make the non-programmed personnel for not having development ability that can also develop the webpage of oneself.
First, to achieve the above object, the present invention proposes a kind of application server, and the application server includes storage Device, processor and the auto-building html files program that can be run on the memory and on the processor is stored in, the webpage life Following steps are realized when being performed into program by the processor:
The configuration information of current web page is received, and preserve to webpage configuration file by the editing interface of webpage configuration file In;
When receiving webpage and showing order, the webpage configuration file is loaded, and obtain in the webpage configuration file The configuration information of the current web page preserved;
The corresponding public module of current web page is called to show operation to current web page progress page layout operation and parameter;
After the completion of page layout operation and the parameter show operation, determine that current web page generation finishes.
Optionally, the editing interface of the webpage configuration file receives the input information of user, the shape of the input information Formula includes natural language and program language.
Optionally, when the auto-building html files program is performed by the processor, following steps are also realized:
Judge the form of the input information of the user;
When the form of the input information is natural language, the natural language is turned according to preset structure converter It is changed to program language.
Optionally, when the auto-building html files program is performed by the processor, following steps are also realized:
When the form of the input information is program language, described program language is turned into row format according to preset rules It changes.
Optionally, it described the step of described program language is subjected to format conversion according to preset rules, specifically includes:
Build regulation engine;
Analyze the function structure of described program language;
The function structure of described program language is optimized according to the regulation engine.
Optionally, the page layout operation is carried out according to the configuration information that webpage shows, and the parameter shows operation root Show parameter according to webpage to carry out.
Optionally, cascading style sheets of the public module including current page, browser script library, webpage are matched Put the parsing interface of file and parameter verification interface.
Optionally, described the step of obtaining the configuration information of the current web page preserved in the webpage configuration file, It specifically includes:
Webpage configuration file after loading is sent to the corresponding public module of the current web page;
Parsing interface by the webpage configuration file for calling public module, parses webpage configuration file, obtains The configuration information of the current web page;
Receive the configuration information for the current web page that the public module is sent.
In addition, to achieve the above object, the present invention also provides a kind of webpage generating method, this method is applied to application service Device, the method includes:
The configuration information of current web page is received, and preserve to webpage configuration file by the editing interface of webpage configuration file In;
When receiving webpage and showing order, the webpage configuration file is loaded, and obtain in the webpage configuration file The configuration information of the current web page preserved;
The corresponding public module of current web page is called to show operation to current web page progress page layout operation and parameter;
After the completion of page layout operation and the parameter show operation, determine that current web page generation finishes.
Optionally, the editing interface of the webpage configuration file receives the input information of user, the shape of the input information Formula includes natural language and program language.
Optionally, the method further includes:
Judge the form of the input information of the user;
When the form of the input information is natural language, the natural language is turned according to preset structure converter It is changed to program language.
Optionally, the method further includes:
When the form of the input information is program language, described program language is turned into row format according to preset rules It changes.
Optionally, it described the step of described program language is subjected to format conversion according to preset rules, specifically includes:
Build regulation engine;
Analyze the function structure of described program language;
The function structure of described program language is optimized according to the regulation engine.
Optionally, the page layout operation is carried out according to the configuration information that webpage shows, and the parameter shows operation root Show parameter according to webpage to carry out.
Optionally, cascading style sheets of the public module including current page, browser script library, webpage configuration The parsing interface of file and parameter verification interface.
Optionally, described the step of obtaining the configuration information of the current web page preserved in the webpage configuration file, It specifically includes:
Webpage configuration file after loading is sent to the corresponding public module of the current web page;
Parsing interface by the webpage configuration file for calling public module, parses webpage configuration file, obtains The configuration information of the current web page;
Receive the configuration information for the current web page that the public module is sent.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with auto-building html files program, and the auto-building html files program can be performed by least one processor, so that institute State the step of at least one processor performs webpage generating method as described above.
Compared to the prior art, application server proposed by the invention, webpage generating method and computer-readable storage Medium is received the configuration information of current web page by the editing interface of webpage configuration file, and preserves to webpage and text is configured first In part;Then, when receiving webpage and showing order, the webpage configuration file is loaded, and obtain the webpage configuration file The configuration information of the current web page of middle preservation;Again, the corresponding public module of current web page is called to carry out current web page Page layout operates and parameter shows operation;Finally, after the completion of page layout operation and the parameter show operation, really Settled preceding auto-building html files finish.In this way, both can be higher to avoid technical threshold in the prior art, the drawbacks of written in code is difficult, The development efficiency and maintainability of webpage can be improved again, and make the non-programmed personnel for not having development ability that can also develop oneself Webpage.
Description of the drawings
Fig. 1 is the schematic diagram of one optional hardware structure of application server in Fig. 1;
Fig. 2 is the program module schematic diagram of auto-building html files program first and 3rd embodiment of the present invention;
Fig. 3 is the program module schematic diagram of auto-building html files program second embodiment of the present invention;
Fig. 4 is the flow chart of webpage generating method first embodiment of the present invention;
Fig. 5 is the flow chart of webpage generating method second embodiment of the present invention;
Fig. 6 is the flow chart of webpage generating method 3rd embodiment of the present invention;
Fig. 7 is the flow chart of webpage generating method fourth embodiment of the present invention.
Reference numeral:
Application server 2
Memory 11
Processor 12
Network interface 13
Auto-building html files program 200
Sending/receiving module 201
Acquisition module 202
Calling module 203
Confirm module 204
Judgment module 205
Modular converter 206
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before creative work is made All other embodiments obtained are put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is only used for description purpose, and cannot It is interpreted as indicating or implies its relative importance or imply the quantity of the technical characteristic indicated by indicating.Define as a result, " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present with reference to there is conflicting or can not realize when, also not the present invention claims Protection domain within.
As shown in fig.1, it is the schematic diagram of 1 one optional hardware structure of application server.
The application server 1 can be rack-mount server, blade server, tower server or cabinet-type service The computing devices such as device, the application server 1 can be the servers that independent server or multiple servers are formed Cluster.
In the present embodiment, the application server 1 may include, but be not limited only to, and company can be in communication with each other by system bus Connect memory 11, processor 12, network interface 13.
The application server 1 connects network by network interface 13, obtains information.The network can be enterprises Net (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile Communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), the wirelessly or non-wirelessly network such as 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi, speech path network.
It should be pointed out that Fig. 1 illustrates only the application server 1 with component 11-13, it should be understood that simultaneously All components shown realistic are not applied, the more or less component of the implementation that can be substituted.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), it is static with Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed only Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be described answers With the hard disk or memory of the internal storage unit of server 1, such as the application server 1.In further embodiments, it is described to deposit Reservoir 11 can also be the External memory equipment of the application server 1, such as the plug-in type that the application server 1 is equipped with is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the application server 1 or wrap Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the application server 1 commonly used in storage Make system and types of applications software, such as program code of the auto-building html files program 200 etc..In addition, the memory 11 is also It can be used for temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is answered commonly used in control is described With the overall operation of server 1, such as execution data interaction or the relevant control of communication and processing etc..In the present embodiment, institute Processor 12 is stated for running the program code stored in the memory 11 or processing data, such as run the webpage Generate program 200 etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the application server 1 and other electronic equipments.
In the present embodiment, when being installed in the application server 2 and having run auto-building html files program 200, when the net When page generation program 200 is run, the application server 2 receives matching for current web page by the editing interface of webpage configuration file Confidence ceases, and preserves into webpage configuration file;When receiving webpage and showing order, the webpage configuration file is loaded, and Obtain the configuration information of the current web page preserved in the webpage configuration file;Call the corresponding public module of current web page Page layout operation is carried out to current web page and parameter shows operation;When page layout operation and the parameter show operation After the completion, determine that current web page generation finishes.In this way, both can be higher to avoid technical threshold in the prior art, written in code is stranded The drawbacks of difficult, and the development efficiency and maintainability of webpage can be improved, and make the non-programmed personnel for not having development ability The webpage of oneself can be developed.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and work(of relevant device in detail Energy.In the following, above application environment and relevant device will be based on, each embodiment of the present invention is proposed.
First, the present invention proposes a kind of auto-building html files program 200.
In the present embodiment, the auto-building html files program 200 includes a series of computer being stored on memory 11 Program instruction when the computer program instructions are performed by processor 12, can realize the auto-building html files of various embodiments of the present invention Operation.In some embodiments, the specific operation realized based on the computer program instructions each section, auto-building html files program 200 can be divided into one or more modules.For example, in fig. 2, the auto-building html files program 200 can be divided into hair It send receiving module 201, acquisition module 202, calling module 203 and confirms module 204.Wherein:
The sending/receiving module 201, for passing through the configuration that the editing interface of webpage configuration file receives current web page Information, and preserve into webpage configuration file.
Specifically, the application server 2 receives the input information of user, institute by the editing interface of webpage configuration file It can be natural language and programming language to state information input by user.
The acquisition module 202, for when receiving webpage and showing order, loading the webpage configuration file, and obtain Take the configuration information of the current web page preserved in the webpage configuration file.
The calling module 203, for the corresponding public module of current web page to be called to carry out page layout to current web page Operation and parameter show operation.
Specifically, the page layout operation is carried out according to the configuration information that webpage shows, and the parameter shows operation root Show parameter according to webpage to carry out.Cascading style sheets of the public module including current page, browser script library, webpage The parsing interface of configuration file and parameter verification interface.
The confirmation module 204, for working as page layout operation and after the completion of the parameter shows operation, determining to work as Preceding auto-building html files finish.
By above procedure module 201-204, auto-building html files program 200 proposed by the invention first, is matched by webpage The editing interface for putting file receives the configuration information of current web page, and preserve into webpage configuration file;Then, when receiving net When page shows order, the webpage configuration file is loaded, and obtain the current web page preserved in the webpage configuration file Configuration information;Again, the corresponding public module of current web page is called to carry out page layout operation and parameter exhibition to current web page Now operate;Finally, after the completion of page layout operation and the parameter show operation, determine that current web page generation finishes. In this way, both can be higher to avoid technical threshold in the prior art, the drawbacks of written in code is difficult, and the exploitation of webpage can be improved Efficiency and maintainability, and make the non-programmed personnel for not having development ability that can also develop the webpage of oneself.
Further, the above-mentioned first embodiment based on auto-building html files program 200 of the present invention proposes that the second of the present invention is real Apply example (as shown in Figure 4).In the present embodiment, the auto-building html files program 200 further includes judgment module 205 and modular converter 206, Wherein:
The judgment module 205, for judging the form of the input information of user.
The modular converter 206, for when the form of the input information is natural language, turning according to preset structure The natural language is converted to program language by parallel operation.
In development field, there is corresponding programming language to be corresponding to it each natural language.When user inputs one Definite value attribute, such as red corresponding #ff0000, width 81px, 80% etc..For example, ought input by user be variable 4, according to change Template $ pagenumber are measured, then program language is $ pagenumber==4.
The modular converter 206 is additionally operable to when the form of the input information is program language, will according to preset rules Described program language carries out format conversion.
In the present embodiment, program language is not construed as limiting, described program language can use any for development field Language, for example, the program languages such as Java Script, XML, DSL, C#.
Specifically, the modular converter 206 builds regulation engine;Analyze the function structure of described program language;And according to The regulation engine optimizes the function structure of described program language.Described program language is turned into row format with realizing It changes.
Specifically, the format conversion includes carrying out function dimension-reduction treatment, and benefit is to reduce function in program language Complexity, operation are simple.In the present embodiment, regulation engine is built according to actual needs by administrative staff.
Further, the described the step of programming language is carried out format conversion according to preset rules, further includes:
After the regulation engine is built, the modular converter 206 carries out the symbol of (default) specific in program language Definition.As a result, perform program simpler.
For example, " | " separator represents that the result of a upper formula is used as first variable of next formula;
", " comma, the separator of representative function parameter;
" () " bracket, it is a function to represent this function expression.
In this implementation, the modular converter 206 optimizes processing particularly with the expression formula of function set function.
For example, Substring ($ page.getValue (), 2,4) is converted into $ page | getValue () | Substring (2,4)
By above procedure module 205-206, auto-building html files program 200 proposed by the invention can will be input by user Natural language is converted into program language, makes the non-programmed personnel for not having development ability that can also develop the webpage of oneself in this way, separately Outside, processing can also be optimized to program language input by user, reduces the complexity of function in program language, operation letter It is single, improve the execution efficiency of program.
Further, the above-mentioned first embodiment based on auto-building html files program 200 of the present invention proposes that the third of the present invention is real Apply example (as shown in Figure 3).In the present embodiment:
The sending/receiving module 201 is additionally operable to the webpage configuration file after loading being sent to the current web page pair The public module answered.In the present embodiment, cascading style sheets of the public module including current page, browser script library, net The page parsing interface of configuration file and parameter verification interface.Application server 2 calls the corresponding public module of current web page can be with Page layout operation is carried out to current web page, after the completion of page layout operation, application server 2 is in the page of current web page On the basis of layout, carry out parameter and show operation, so that the parameter can be presented on rational placement position.When page layout is grasped Make after the completion of showing operation with parameter, the application server 2 determines that current web page generation finishes.
The calling module 203 is additionally operable to the parsing interface of the webpage configuration file by calling public module, to webpage Configuration file is parsed, and obtains the configuration information of the current web page.
The sending/receiving module 201 is additionally operable to receive the configuration information for the current web page that the public module is sent.Tool Body, in auto-building html files in actual implementation, webpage configuration file preserves the differentiation data of current web page, and public module is preserved The public style information that current web page uses, when webpage needs update, it is only necessary to change the webpage configuration file i.e. More new task can be completed, is modified without the overall code to webpage.Therefore, in the present embodiment, by obtaining current web page Configuration information, modify when being updated so as to webpage to webpage.
By above procedure module 201-203, auto-building html files program 200 proposed by the invention can obtain to generate The configuration information of the current web page page.
In addition, the present invention also proposes a kind of webpage generating method.
As shown in fig.4, it is the implementation process diagram of webpage generating method first embodiment of the present invention.In the present embodiment In, according to different demands, the execution sequence of the step in flow chart shown in fig. 5 can change, and certain steps can be omitted.
Step S401 receives the configuration information of current web page, and preserve to net by the editing interface of webpage configuration file In page configuration file.
Specifically, the application server 1 receives the input information of user, institute by the editing interface of webpage configuration file It can be natural language and programming language to state information input by user.
Step S402 when receiving webpage and showing order, loads the webpage configuration file, and obtain the webpage and match Put the configuration information of the current web page preserved in file.
Step S403 calls the corresponding public module of current web page to carry out page layout operation and parameter exhibition to current web page Now operate.
Specifically, the page layout operation is carried out according to the configuration information that webpage shows, and the parameter shows operation root Show parameter according to webpage to carry out.Cascading style sheets of the public module including current page, browser script library, webpage The parsing interface of configuration file and parameter verification interface.
Step S404 after the completion of page layout operation and the parameter show operation, determines that current web page generates It finishes.
By above-mentioned steps S401-404, webpage generating method proposed by the invention first, passes through webpage configuration file Editing interface receive the configuration information of current web page, and preserve in webpage configuration file;Then, show when receiving webpage During order, the webpage configuration file is loaded, and obtains the configuration of the current web page preserved in the webpage configuration file Information;Again, the corresponding public module of current web page is called to show operation to current web page progress page layout operation and parameter; Finally, after the completion of page layout operation and the parameter show operation, determine that current web page generation finishes.In this way, both Can be higher to avoid technical threshold in the prior art, the drawbacks of written in code is difficult, and can improve webpage development efficiency and Maintainability, and make the non-programmed personnel for not having development ability that can also develop the webpage of oneself.
Above-mentioned first embodiment based on webpage generating method of the present invention proposes that the second of webpage generating method of the present invention is real Apply example.
As shown in figure 5, it is the implementation process diagram of the second embodiment of webpage generating method of the present invention.In the present embodiment In, according to different demands, the execution sequence of the step in flow chart shown in fig. 5 can change, and certain steps can be omitted.
Step S501 receives the configuration information of current web page, and preserve to net by the editing interface of webpage configuration file In page configuration file.
Specifically, the application server 1 receives the input information of user, institute by the editing interface of webpage configuration file It can be natural language and programming language to state information input by user.
Step S502 when receiving webpage and showing order, loads the webpage configuration file, and obtain the webpage and match Put the configuration information of the current web page preserved in file.
Step S503 calls the corresponding public module of current web page to carry out page layout operation and parameter exhibition to current web page Now operate.
Specifically, the page layout operation is carried out according to the configuration information that webpage shows, and the parameter shows operation root Show parameter according to webpage to carry out.Cascading style sheets of the public module including current page, browser script library, webpage The parsing interface of configuration file and parameter verification interface.
Step S504 after the completion of page layout operation and the parameter show operation, determines that current web page generates It finishes.
Step S505 judges the form of the input information of user.When the form of the input information is natural language, hold Row step S506 conversely, when the form of the input information is program language, performs step S507.
The natural language is converted to program language by step S506 according to preset structure converter.
In development field, there is corresponding programming language to be corresponding to it each natural language.When user inputs one Definite value attribute, such as red corresponding #ff0000, width 81px, 80% etc..For example, ought input by user be variable 4, according to change Template $ pagenumber are measured, then program language is $ pagenumber==4.
Described program language is carried out format conversion by step S507 according to preset rules.
In the present embodiment, program language is not construed as limiting, described program language can use any for development field Language, for example, the program languages such as Java Script, XML, DSL, C#.
By above-mentioned steps S501-507, webpage generating method proposed by the invention can be by nature input by user Language conversion makes the non-programmed personnel for not having development ability that can also develop the webpage of oneself, in addition, also in this way into program language Processing can be optimized to program language input by user, reduces the complexity of function in program language, operation is simple, improves The execution efficiency of program.
First and second above-mentioned embodiment based on webpage generating method of the present invention proposes webpage generating method of the present invention 3rd embodiment.
As shown in fig. 6, it is the implementation process diagram of the 3rd embodiment of webpage generating method of the present invention.The present embodiment In, it described the step of described program language is subjected to format conversion according to preset rules, specifically includes:
Step S601 builds regulation engine.
Step S602 analyzes the function structure of described program language.
Step S603 optimizes the function structure of described program language according to the regulation engine.
Specifically, the format conversion includes carrying out function dimension-reduction treatment, and benefit is to reduce function in program language Complexity, operation are simple.
After the regulation engine is built, the application server 1 carries out the symbol of (default) specific in program language Definition.As a result, perform program simpler.
For example, " | " separator represents that the result of a upper formula is used as first variable of next formula;
", " comma, the separator of representative function parameter;
" () " bracket, it is a function to represent this function expression.
In this implementation, the application server 1 optimizes processing particularly with the expression formula of function set function.For example, Substring ($ page.getValue (), 2,4) is converted into $ page | getValue () | Substring (2,4).
By above example, the application server 1 builds regulation engine, analyzes the function knot of described program language Structure optimizes the function structure of described program language according to the regulation engine.
By above-mentioned steps S601-603, webpage generating method proposed by the invention can be by nature input by user Language conversion makes the non-programmed personnel for not having development ability that can also develop the webpage of oneself, in addition, also in this way into program language Processing can be optimized to program language input by user, reduces the complexity of function in program language, operation is simple, improves The execution efficiency of program.
Above-mentioned first, second and third embodiment based on webpage generating method of the present invention proposes auto-building html files of the present invention The fourth embodiment of method.
As shown in fig. 7, it is the implementation process diagram of the fourth embodiment of webpage generating method of the present invention.The present embodiment In, it described the step of obtaining the configuration information of the current web page preserved in the webpage configuration file, specifically includes:
Webpage configuration file after loading is sent to the corresponding public module of the current web page by step S701.This reality It applies in example, the parsing that public module includes the cascading style sheets, browser script library, webpage configuration file of current page connects Mouth and parameter verification interface.Application server 1 calls the corresponding public module of current web page that can carry out the page to current web page Layout operation, after the completion of page layout operation, application server 1 is joined on the basis of the page layout of current web page Number shows operation, so that the parameter can be presented on rational placement position.When page layout operation and parameter show operation After the completion, the application server 1 determines that current web page generation finishes.
Step S702, the parsing interface of the webpage configuration file by calling public module carry out webpage configuration file Parsing, obtains the configuration information of the current web page.
Step S703 receives the configuration information for the current web page that the public module is sent.Specifically, in auto-building html files reality When border is realized, webpage configuration file preserves the differentiation data of current web page, and public module is preserved current web page and used Public style information, when webpage need update when, it is only necessary to change the webpage configuration file and more new task, nothing can be completed It need to modify to the overall code of webpage.Therefore, in the present embodiment, by obtaining the configuration information of current web page, so as to net It modifies during web update to webpage.
By above-mentioned steps S701-703, webpage generating method proposed by the invention can obtain current for generating The configuration information of Webpage.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of webpage generating method, applied to application server, which is characterized in that the method includes:
The configuration information of current web page is received, and preserve into webpage configuration file by the editing interface of webpage configuration file;
When receiving webpage and showing order, the webpage configuration file is loaded, and obtain and preserved in the webpage configuration file The current web page configuration information;
The corresponding public module of current web page is called to show operation to current web page progress page layout operation and parameter;And
After the completion of page layout operation and the parameter show operation, determine that current web page generation finishes.
2. webpage generating method as described in claim 1, which is characterized in that the editing interface of the webpage configuration file receives The input information of user, the form of the input information include natural language and program language.
3. webpage generating method as claimed in claim 2, which is characterized in that the method further includes:
Judge the form of the input information of the user;And
When the form of the input information is natural language, the natural language is converted to according to preset structure converter Program language.
4. webpage generating method as claimed in claim 3, which is characterized in that the method further includes:
When the form of the input information is program language, described program language is subjected to format conversion according to preset rules.
5. webpage generating method as claimed in claim 4, which is characterized in that it is described according to preset rules by described program language The step of carrying out format conversion, specifically includes:
Build regulation engine;
Analyze the function structure of described program language;And
The function structure of described program language is optimized according to the regulation engine.
6. webpage generating method as described in claim 1, which is characterized in that the page layout operation showed according to webpage Configuration information carries out, and the parameter shows operation and shows parameter progress according to webpage.
7. webpage generating method as described in claim 1, which is characterized in that the public module includes the stacking of current page Style sheet, browser script library, the parsing interface of webpage configuration file and parameter verification interface.
8. webpage generating method as described in claim 1, which is characterized in that described obtain preserves in the webpage configuration file The current web page configuration information the step of, specifically include:
Webpage configuration file after loading is sent to the corresponding public module of the current web page;
Parsing interface by the webpage configuration file for calling public module, parses webpage configuration file, obtains described The configuration information of current web page;And
Receive the configuration information for the current web page that the public module is sent.
9. a kind of application server, which is characterized in that the application server includes memory, processor and is stored in described deposit On reservoir and the auto-building html files program that can run on the processor, when the auto-building html files program is performed by the processor The step of realizing the webpage generating method as described in any one of claim 1-8.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has auto-building html files program, the net Page generation program can be performed by least one processor, so that at least one processor is performed as appointed in claim 1-8 The step of webpage generating method described in one.
CN201710790165.7A 2017-09-05 2017-09-05 Webpage generation method and application server Active CN108255914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710790165.7A CN108255914B (en) 2017-09-05 2017-09-05 Webpage generation method and application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710790165.7A CN108255914B (en) 2017-09-05 2017-09-05 Webpage generation method and application server

Publications (2)

Publication Number Publication Date
CN108255914A true CN108255914A (en) 2018-07-06
CN108255914B CN108255914B (en) 2022-04-22

Family

ID=62721212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710790165.7A Active CN108255914B (en) 2017-09-05 2017-09-05 Webpage generation method and application server

Country Status (1)

Country Link
CN (1) CN108255914B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271162A (en) * 2018-09-03 2019-01-25 中国建设银行股份有限公司 A kind of page generation method and device
CN109815435A (en) * 2019-01-24 2019-05-28 中国人民解放军战略支援部队航天工程大学 A kind of Website page generation method, device and electronic equipment
CN111324833A (en) * 2018-12-14 2020-06-23 北京京东尚科信息技术有限公司 Page display method, device, electronic design and computer readable medium
CN111708969A (en) * 2020-06-17 2020-09-25 北京明略软件系统有限公司 Webpage configuration method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070186156A1 (en) * 2006-02-09 2007-08-09 Sap Converter-tool for a non-programmer user, to generate a web based application
TW200834344A (en) * 2006-11-02 2008-08-16 Crimsonlogic Pte Ltd System and method for processing language independent natural language statements
CN103299292A (en) * 2010-12-02 2013-09-11 Sk电信有限公司 Natural language and mathematical formula processing method and device therefor
CN104731785A (en) * 2013-12-18 2015-06-24 中国移动通信集团上海有限公司 Information searching method and device
CN105095445A (en) * 2015-07-24 2015-11-25 北京奇虎科技有限公司 Page generation method and system
CN106250159A (en) * 2016-08-04 2016-12-21 深圳市微我科技有限公司 A kind of hybrid programming method utilizing natural language
CN106354748A (en) * 2016-08-15 2017-01-25 北京数码视讯科技股份有限公司 Webpage generation method and device
CN106802937A (en) * 2016-12-30 2017-06-06 江苏中育优教科技发展有限公司 The conversion method and system of Word document

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070186156A1 (en) * 2006-02-09 2007-08-09 Sap Converter-tool for a non-programmer user, to generate a web based application
TW200834344A (en) * 2006-11-02 2008-08-16 Crimsonlogic Pte Ltd System and method for processing language independent natural language statements
CN103299292A (en) * 2010-12-02 2013-09-11 Sk电信有限公司 Natural language and mathematical formula processing method and device therefor
CN104731785A (en) * 2013-12-18 2015-06-24 中国移动通信集团上海有限公司 Information searching method and device
CN105095445A (en) * 2015-07-24 2015-11-25 北京奇虎科技有限公司 Page generation method and system
CN106250159A (en) * 2016-08-04 2016-12-21 深圳市微我科技有限公司 A kind of hybrid programming method utilizing natural language
CN106354748A (en) * 2016-08-15 2017-01-25 北京数码视讯科技股份有限公司 Webpage generation method and device
CN106802937A (en) * 2016-12-30 2017-06-06 江苏中育优教科技发展有限公司 The conversion method and system of Word document

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
RAIMUND等: "model-transformation-based software generation utilizing natural language notations", 《2008 2ND IEEE INTERNATIONAL CONFERENCE ON DIGITAL ECOSYSTEMS AND TECHNOLOGIES》 *
刘杨钺: "JAVA程序模型驱动开发案例研究", 《福建电脑》 *
李爽: "基于知识库的语言翻译系统研究", 《微计算机应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271162A (en) * 2018-09-03 2019-01-25 中国建设银行股份有限公司 A kind of page generation method and device
CN111324833A (en) * 2018-12-14 2020-06-23 北京京东尚科信息技术有限公司 Page display method, device, electronic design and computer readable medium
CN109815435A (en) * 2019-01-24 2019-05-28 中国人民解放军战略支援部队航天工程大学 A kind of Website page generation method, device and electronic equipment
CN111708969A (en) * 2020-06-17 2020-09-25 北京明略软件系统有限公司 Webpage configuration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108255914B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN108255914A (en) webpage generating method and application server
CN107909486A (en) Commission management method, application server and computer-readable recording medium
CN107689982A (en) Multi-data source method of data synchronization, application server and computer-readable recording medium
CN104583945B (en) A kind of application upgrade method, apparatus
CN106250104B (en) A kind of remote operating system for server, method and device
CN108428104A (en) Wages computational methods, application server and computer readable storage medium
KR20190022440A (en) Data source based work customization apparatus, method, system and storage medium
CN108845950A (en) Test device, the method for test and storage medium
WO2018210096A1 (en) Rule engine-based rule configuration method, terminal and device, and storage medium
CN109657177A (en) The generation method of the page, device, storage medium and computer equipment after upgrading
CN108491367A (en) Method, apparatus, computer equipment and the storage medium that report file generates
CN107908603A (en) Dynamic generation document method and application server
CN108021400A (en) Data processing method and device, computer-readable storage medium and equipment
CN110928802A (en) Test method, device, equipment and storage medium based on automatic generation of case
CN108021621A (en) Database data acquisition method, application server and computer-readable recording medium
CN107682426A (en) interface proxy method and application server
CN106326099B (en) A kind of method, apparatus and electronic equipment for program tracking
CN108255701A (en) Scrnario testing method and mobile terminal
CN107577622A (en) Back end interface analogy method, equipment and storage medium
CN108600331A (en) Interactive interface rendering method, client, terminal and system
CN107908480A (en) Wages computational methods, application server and computer-readable recording medium
CN105786636B (en) A kind of system repair and device
CN107341027A (en) The generation method and generating means of user interface
CN108255735A (en) Associated environment test method, electronic device and computer readable storage medium
CN107679937A (en) Customize method, system, storage medium and the equipment of service function

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
GR01 Patent grant
GR01 Patent grant