CN102521352A - Method and device for generating page - Google Patents

Method and device for generating page Download PDF

Info

Publication number
CN102521352A
CN102521352A CN2011104130532A CN201110413053A CN102521352A CN 102521352 A CN102521352 A CN 102521352A CN 2011104130532 A CN2011104130532 A CN 2011104130532A CN 201110413053 A CN201110413053 A CN 201110413053A CN 102521352 A CN102521352 A CN 102521352A
Authority
CN
China
Prior art keywords
page
jsp
static
tity
jsp file
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
CN2011104130532A
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 CN2011104130532A priority Critical patent/CN102521352A/en
Publication of CN102521352A publication Critical patent/CN102521352A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for generating a page, comprising the steps of generating a static Java Server Page (jsp) header according to a page mark, writing the jsp header into the static jsp file corresponding to the static jsp file header; obtaining the page element information of the static jsp file from the page configuration library according to the page mark, and classifying and writing the page element information into the static jsp file. Correspondingly, the invention further provides a device for generating pages. The method and the device provided by the invention can solve page generation problem which requires different data input fields, do not need to develop repeatedly and satisfy various data input requests of the page.

Description

A kind of method and apparatus that is used for page generation
Technical field
The present invention relates to data processing field, relate in particular to a kind of method and apparatus that the page generates that is used for.
Background technology
Along with the continuous development and progress of various data processing techniques, people are also increasingly high for the degree of data processing.And the pairing application of different pieces of information differentiating and processing emerges in an endless stream especially, and the technology that can adopt is also more and more diversified.Wherein a kind of technology is JSP (Java Server Pages), and JSP is a kind of dynamic web page technique standard by Sun Microsystems company advocates, the participation of many companies is set up together.The JSP technology possesses the support of good WEB server; Most of general web servers; For example Apache, Netscape and Microsoft IIS etc. support the JSP page; And JSP has platform independence, and the platform that general java applet can move is all supported the JSP program run.For the comparatively complicated application of page need, for example for the application in every kind of page request different pieces of information typing territory, it often need carry out overlapping development to the page that requires different pieces of information typing territory, wastes time and energy, and cost is higher.
Summary of the invention
The invention provides a kind of method that the page generates that is used for, its page that adopts the mode that generates the static JSP page to solve and require different pieces of information typing territory generates problem, need not overlapping development, has satisfied the various data typing demands of the page.
According to a first aspect of the invention, a kind of method that the page generates that is used for is provided, said method comprises:
Generate static jsp file header according to page iden-tity, and write the corresponding static jsp file of said static jsp file header;
From the page configuration storehouse, obtain the page elements information of said static jsp file according to page iden-tity, said page elements information is carried out writing said static jsp file after the classification processing.
According to a second aspect of the invention, a kind of device that the page generates that is used for is provided, said device comprises:
First generation module is used for generating static jsp file header according to page iden-tity, and writes the corresponding static jsp file of said static jsp file header;
Second generation module is used for obtaining from the page configuration storehouse according to page iden-tity the page elements information of said static jsp file, and said page elements information is carried out writing said static jsp file after the classification processing.
Embodiment of the present invention be used for the method and apparatus that the page generates, the page that requires different pieces of information typing territory need not to develop repeatedly, can satisfy the data typing demand of different pieces of information according to application need customized web page, customization data typing territory voluntarily.
Description of drawings
Fig. 1 illustrates the synoptic diagram according to the method that is used for page generation of embodiment of the present invention.
Fig. 2 illustrates the schematic representation of apparatus of implementing according to the present invention that the page generates that is used for.
Embodiment
For the purpose, technical scheme and the advantage that make embodiments of the invention is clearer, will combine accompanying drawing that the present invention is done to describe in detail further below.
Referring to Fig. 1, illustrate synoptic diagram according to the method that is used for page generation of embodiment of the present invention, said method specifically can comprise:
S100 generates static jsp file header according to page iden-tity, and writes the corresponding static jsp file of said static jsp file header;
S102 obtains the page elements information of said static jsp file according to page iden-tity from the page configuration storehouse, said page elements information is carried out writing said static jsp file after the classification processing.
In the embodiment of the present invention, page iden-tity can be the page number ID of the page to be generated, also can be the page iden-tity that comprises numeral, letter and special symbol of the page to be generated.The page iden-tity of each page is unique, the page iden-tity that the different pages are corresponding different.Generate static jsp file header according to page iden-tity before, embodiment of the present invention can also comprise, the process that the legitimacy of page iden-tity is checked; Particularly; The inspection page iden-tity title whether meet preset rule, for example, the title of page iden-tity back two whether consistent with predefined organization names code; If the page iden-tity title back two consistent with predefined organization names code; Then can pass through JDBC (Java Data Base Connectivity, the Java database connects) and be connected to the used database of page generation, continue subsequent page and generate the processing operation; If the title of page iden-tity back two inconsistent with predefined organization names code, then there is maloperation in explanation, withdraws from the page and generate to handle operation.
In embodiments more of the present invention; After being connected to database through JDBC; Can also comprise; From being used for the corresponding file information that the page generates according to extracting the page iden-tity database; Said fileinfo can comprise page number, Page Name and mechanism's rank, and wherein the partial information in page number, Page Name and the mechanism's rank can be used as the component part of page iden-tity, for example other code of mechanism's level can be used as page iden-tity preceding 2 or back 2 so that the legitimacy of page iden-tity is verified through Institution Code.After from database, extracting corresponding file information; Can also judge further whether this page iden-tity has disposed page security control; Promptly judge whether the security attribute of the page is provided with; Wherein the security attribute setting of the page comprises other security set of mechanism's level that the page is affiliated, and the corresponding different security attributes of different mechanism's ranks are provided with.For example, for higher relatively mechanism's rank, higher security attribute rank can be set.
Page iden-tity can be stored among the page info PageInfo in the embodiment of the present invention.Generate static jsp file header according to page iden-tity before; Method of the present invention can also comprise; Judge whether page iden-tity exists in page info PageInfo, if this page iden-tity (for example, page number ID) exists in page info PageInfo; Then obtain new page iden-tity again, to guarantee the uniqueness of page iden-tity in the pages creation process through input equipment; If this page iden-tity (for example, page number ID) does not exist in page info PageInfo, then continue to generate static jsp file header according to page iden-tity.Wherein, the input equipment in the embodiment of the present invention can be any suitable computer entry device well known by persons skilled in the art, for example keyboard, mouse, image scanning input etc.
The step that generates static jsp file header according to page iden-tity can comprise: the static jsp file header that is created on the data input interface according to page iden-tity; Generate the static jsp file header that is used for the operation of data input database according to page iden-tity; Generate the static jsp file header that is used for data typing page check script according to page iden-tity; Correspondingly, after generating static jsp file header, write the corresponding static jsp file of this static state jsp file header (that is: the corresponding static jsp file of this page iden-tity).Need to prove that those skilled in the art can be provided with the mode that is not limited to describe in this embodiment to the data typing territory in the page according to application need.For example the page at bank data generates in the application; Data typing territory in the page can be corresponding be each bank or same bank branches at different levels (for example; Head office, provincial branches, city-level branch etc.) the specific product business item content of each financial product, or the content of examination of specific product business item.Adopt static jsp document form to carry out the page in the embodiment of the present invention and generate, made things convenient for follow-up page invocation, make that the page invocation with different pieces of information typing territory is more flexible.
After generating static jsp file header and writing corresponding static jsp file; From the page configuration storehouse that is provided with in advance, obtain the page elements information of static jsp file according to page iden-tity; Said page elements information can be basic HTML (Hypertext Markup Language; HTML) page elements information, particularly, page elements information can comprise text box information, combobox information and password box information.The page configuration storehouse is provided with in advance, some page Back ground Informations that can in page customization, in the page configuration storehouse, insert in advance.After obtaining the page elements information of static jsp file; Page elements information is classified; For example, can be divided into text box, combobox and password box etc., and correspondingly; Generation is used for the jsp end-of-file of data input interface, the jsp end-of-file that generation is used for the operation of data input database, the jsp end-of-file that generation is used for data typing page check script, and the jsp end-of-file that generates is write corresponding static jsp file.
After three corresponding static jsp files of the page generate; Close three corresponding static jsp files; If three static jsp file corresponding page signs that generated are not stored among the page info PageInfo; In page info PageInfo, increase the page iden-tity of this page so, the information among the refresh page surface information PageInfo.After refresh page surface information PageInfo, through the JDBC closing database.
More than combine accompanying drawing and embodiment that the method that is used for page generation provided by the invention is set forth, will combine accompanying drawing and embodiment to carry out bright specifically below the device that is used for page generation provided by the invention.
Referring to Fig. 2, illustrate the schematic representation of apparatus of implementing according to the present invention that the page generates that is used for.Said device 200 can comprise:
First generation module 202 is used for generating static jsp file header according to page iden-tity, and writes the corresponding static jsp file of said static jsp file header;
Second generation module 204 is used for obtaining from the page configuration storehouse according to page iden-tity the page elements information of said static jsp file, and said page elements information is carried out writing said static jsp file after the classification processing.
In the embodiment of the present invention, page iden-tity can be the page number ID of the page to be generated, also can be the page iden-tity that comprises numeral, letter and special symbol of the page to be generated.The page iden-tity of each page is unique, the page iden-tity that the different pages are corresponding different.The page generating apparatus of embodiment of the present invention can also be included in first generation module and generate before the jsp file header; The secure verification module that the legitimacy of page iden-tity is checked; Whether the title of this secure verification module inspection page iden-tity meets preset rule; For example, the title of page iden-tity back two whether consistent with predefined organization names code, if the page iden-tity title back two consistent with predefined organization names code; Then can be connected to the page and generate used database, continue the processing of the first follow-up generation module through JDBC; If the title of page iden-tity back two inconsistent with predefined organization names code, then there is maloperation in explanation, withdraws from the page and generate to handle operation.
Device in the embodiment of the present invention can also comprise judge module and judge execution module except comprising first generation module and second generation module.Page iden-tity can be stored among the page info PageInfo in the invention embodiment; Judge module is first generation module generates static jsp file header according to page iden-tity before; Judge whether said page iden-tity exists in page info PageInfo; If said page iden-tity exists in page info PageInfo; Then call and judge that execution module obtains new page iden-tity again through input equipment,, then call first generation module and begin to generate static jsp file header according to page iden-tity if said page iden-tity does not exist in page info PageInfo.Judge in the embodiment of the present invention that execution module is connected with input equipment, obtains page iden-tity information so that receive through input equipment.Input equipment in the embodiment of the present invention can be any suitable computer entry device well known by persons skilled in the art, for example keyboard, mouse, image scanning input etc.
After confirming page iden-tity; First generation module is created on the static jsp file header of data input interface in the embodiment of the present invention according to page iden-tity; Generate the static jsp file header that is used for the operation of data input database according to page iden-tity; Generate the static jsp file header that is used for data typing page check script according to page iden-tity; Correspondingly, after generating static jsp file header, write the corresponding static jsp file of this static state jsp file header (that is: the corresponding static jsp file of this page iden-tity).Need to prove that those skilled in the art can be provided with the mode that is not limited to describe in this embodiment to the data typing territory in the page according to application need.Adopt static jsp document form to carry out the page in the embodiment of the present invention and generate, made things convenient for follow-up page invocation, make that the page invocation with different pieces of information typing territory is more flexible.
After first generation module generates static jsp file header and writes corresponding static jsp file; Second generation module obtains the page elements information of static jsp file from the page configuration storehouse that is provided with in advance according to page iden-tity; Said page elements information can be basic html page element information; Particularly, page elements information can comprise text box information, combobox information and password box information.The page configuration storehouse is provided with in advance, some page Back ground Informations that in page customization, insert.Second generation module is after obtaining the page elements information of static jsp file; Page elements information is classified; For example, be divided into text box, combobox and password box etc., and correspondingly; Generation is used for the jsp end-of-file of data input interface, the jsp end-of-file that generation is used for the operation of data input database, the jsp end-of-file that generation is used for data typing page check script, and three jsp end-of-files that generated are write corresponding static jsp file.
After three corresponding static jsp files of the page generate; Close three corresponding static jsp files; If three static jsp file corresponding page signs that generated are not stored among the page info PageInfo; In page info PageInfo, increase the page iden-tity of this page so, the information among the refresh page surface information PageInfo.After refresh page surface information PageInfo, through the JDBC closing database.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize by the mode of software combined with hardware platform, can certainly all implement through hardware.Based on such understanding; All or part of can the coming out that technical scheme of the present invention contributes to background technology with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Above disclosedly be merely a kind of preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (10)

1. one kind is used for the method that the page generates, and it is characterized in that said method comprises:
Generate static jsp file header according to page iden-tity, and write the corresponding static jsp file of said static jsp file header;
From the page configuration storehouse, obtain the page elements information of said static jsp file according to page iden-tity, said page elements information is carried out writing said static jsp file after the classification processing.
2. the method for claim 1 is characterized in that, saidly generates static jsp file header according to page iden-tity and comprises:
Generate the jsp file header that is used for the data input interface, the jsp file header that generation is used for the operation of data input database, the jsp file header that generation is used for data typing page check script according to page iden-tity.
3. method as claimed in claim 2 is characterized in that, said page elements information comprises text box information, combobox information, password box information.
4. method as claimed in claim 3 is characterized in that, saidly said page elements information is carried out writing said static jsp file after the classification processing comprises:
Generation is used for the jsp end-of-file of data input interface, jsp end-of-file, the generation that generation is used for the operation of data input database is used for the jsp end-of-file of data typing page check script and writes said static jsp file.
5. like any described method of claim 2 to 4, it is characterized in that said method also comprises:
Generate static jsp file header according to page iden-tity before, judge that said page iden-tity is whether in page info PageInfo, if then obtain page iden-tity information again through input equipment.
6. one kind is used for the device that the page generates, and it is characterized in that said device comprises:
First generation module is used for generating static jsp file header according to page iden-tity, and writes the corresponding static jsp file of said static jsp file header;
Second generation module is used for obtaining from the page configuration storehouse according to page iden-tity the page elements information of said static jsp file, and said page elements information is carried out writing said static jsp file after the classification processing.
7. device as claimed in claim 6; It is characterized in that; Said first generation module is used for generating the jsp file header that is used for the data input interface, the jsp file header that generation is used for the operation of data input database, the jsp file header that generation is used for data typing page check script according to page iden-tity.
8. device as claimed in claim 7 is characterized in that, said page elements information comprises text box information, combobox information, password box information.
9. device as claimed in claim 8; It is characterized in that; Said second generation module is used to generate the jsp end-of-file that is used for the data input interface, generates the jsp end-of-file that is used for the operation of data input database, generates and be used for the jsp end-of-file of data typing page check script and write said static jsp file.
10. like any described device of claim 7 to 9, it is characterized in that said device also comprises:
Judge module was used for generate static jsp file header according to page iden-tity before, judged that said page iden-tity is whether in page info PageInfo, if then call the judgement execution module;
Judge execution module, be used for obtaining page iden-tity information again through input equipment.
CN2011104130532A 2011-12-12 2011-12-12 Method and device for generating page Pending CN102521352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104130532A CN102521352A (en) 2011-12-12 2011-12-12 Method and device for generating page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104130532A CN102521352A (en) 2011-12-12 2011-12-12 Method and device for generating page

Publications (1)

Publication Number Publication Date
CN102521352A true CN102521352A (en) 2012-06-27

Family

ID=46292266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104130532A Pending CN102521352A (en) 2011-12-12 2011-12-12 Method and device for generating page

Country Status (1)

Country Link
CN (1) CN102521352A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838575A (en) * 2014-02-20 2014-06-04 浪潮集团山东通用软件有限公司 Plug-in type page customization implementation method based on EXTJS frame
CN104933589A (en) * 2015-07-07 2015-09-23 北京齐尔布莱特科技有限公司 An order generating system and a method
CN108132942A (en) * 2016-11-30 2018-06-08 北京国双科技有限公司 A kind of page generation method and terminal
CN111144075A (en) * 2019-12-02 2020-05-12 江苏艾佳家居用品有限公司 Automatic verification method based on dynamic combination strategy of web end form and verification rule

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126977A (en) * 2007-08-28 2008-02-20 激动集团股份有限公司 ISAPI based WEB static page generation method
CN101165685A (en) * 2006-10-19 2008-04-23 国际商业机器公司 Dynamic web page generation method and system
US7451393B1 (en) * 2003-12-23 2008-11-11 Sun Microsystems, Inc. System and method for a page rendering framework
CN101359290A (en) * 2008-09-11 2009-02-04 中兴通讯股份有限公司 Method for customizing service document based on metadata and apparatus
CN101729590A (en) * 2008-10-15 2010-06-09 北大方正集团有限公司 Method, system and device for providing web page
CN102096588A (en) * 2011-03-24 2011-06-15 南京朗睿软件科技有限公司 Control-containing page establishing method
CN102193933A (en) * 2010-03-10 2011-09-21 北大方正集团有限公司 Method and system for webpage editing
CN102254023A (en) * 2011-07-27 2011-11-23 深圳市五巨科技有限公司 Method and device for editing webpage

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7451393B1 (en) * 2003-12-23 2008-11-11 Sun Microsystems, Inc. System and method for a page rendering framework
CN101165685A (en) * 2006-10-19 2008-04-23 国际商业机器公司 Dynamic web page generation method and system
CN101126977A (en) * 2007-08-28 2008-02-20 激动集团股份有限公司 ISAPI based WEB static page generation method
CN101359290A (en) * 2008-09-11 2009-02-04 中兴通讯股份有限公司 Method for customizing service document based on metadata and apparatus
CN101729590A (en) * 2008-10-15 2010-06-09 北大方正集团有限公司 Method, system and device for providing web page
CN102193933A (en) * 2010-03-10 2011-09-21 北大方正集团有限公司 Method and system for webpage editing
CN102096588A (en) * 2011-03-24 2011-06-15 南京朗睿软件科技有限公司 Control-containing page establishing method
CN102254023A (en) * 2011-07-27 2011-11-23 深圳市五巨科技有限公司 Method and device for editing webpage

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱雷等: "基于页面模板和配置文件的web页面生成方法", 《计算机技术与应用进展》, 31 December 2007 (2007-12-31) *
舒红平等: "基于JAVA的WEB页面自动生成系统", 《成都信息工程学院学报》, no. 04, 30 December 2003 (2003-12-30) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838575A (en) * 2014-02-20 2014-06-04 浪潮集团山东通用软件有限公司 Plug-in type page customization implementation method based on EXTJS frame
CN104933589A (en) * 2015-07-07 2015-09-23 北京齐尔布莱特科技有限公司 An order generating system and a method
CN104933589B (en) * 2015-07-07 2018-07-03 北京齐尔布莱特科技有限公司 A kind of order generating system and method
CN108132942A (en) * 2016-11-30 2018-06-08 北京国双科技有限公司 A kind of page generation method and terminal
CN111144075A (en) * 2019-12-02 2020-05-12 江苏艾佳家居用品有限公司 Automatic verification method based on dynamic combination strategy of web end form and verification rule

Similar Documents

Publication Publication Date Title
US10423709B1 (en) Systems, devices, and methods for automated and programmatic creation and deployment of remediations to non-compliant web pages or user interfaces
US11151304B2 (en) Modular systems and methods for selectively enabling cloud-based assistive technologies
Bigham et al. Accessmonkey: a collaborative scripting framework for web users and developers
US10867120B1 (en) Modular systems and methods for selectively enabling cloud-based assistive technologies
CN104391786B (en) Webpage automatization test system and its method
US20080189328A1 (en) Mobile e-learning method and apparatus based on media adapted learning objects
US20140237352A1 (en) Automatically performing a web service operation
US9311303B2 (en) Interpreted language translation system and method
CN103605502B (en) Form page display method and server
CN103034690A (en) Self-customizing method of mobile terminal client application program based on web service
Vassilakis et al. A knowledge-based approach for developing multi-channel e-government services
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
CN103548083A (en) System for playing multimedia for a PDF document-based e-book and method for playing same, and application for a PC or a mobile device in which the same is implemented
CN110414989A (en) Method for detecting abnormality and device, electronic equipment and computer readable storage medium
CN102521352A (en) Method and device for generating page
CN108256078B (en) Information acquisition method and device
CN110333866B (en) Method and device for generating receiving page and electronic equipment
US11727195B2 (en) Modular systems and methods for selectively enabling cloud-based assistive technologies
KR101813512B1 (en) System and method for installing web application
Wakil et al. A new adaptive model for web engineering methods to develop modern web applications
CN109074380A (en) The separation of work and personal content
EP2416252A1 (en) Method of improving accessibility, for rich internet applications that uses collaborative crawling, and computer program thereof
Calle-Jimenez et al. Designing accessible maps on mobile devices for blind and visually impaired users
Edan et al. Usage one of Reverse Engineering Application (Node. js Web) to Construct Software Engineering Documents
Patel et al. News Wallet–An Authenticated News Journal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120627