CN101788950A - Data item calibration method based on JSP page - Google Patents
Data item calibration method based on JSP page Download PDFInfo
- Publication number
- CN101788950A CN101788950A CN201010101551A CN201010101551A CN101788950A CN 101788950 A CN101788950 A CN 101788950A CN 201010101551 A CN201010101551 A CN 201010101551A CN 201010101551 A CN201010101551 A CN 201010101551A CN 101788950 A CN101788950 A CN 101788950A
- Authority
- CN
- China
- Prior art keywords
- data item
- verification
- rule
- jsp
- page
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012795 verification Methods 0.000 claims description 142
- 239000012634 fragment Substances 0.000 claims description 6
- 238000013524 data verification Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 6
- 230000033772 system development Effects 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 12
- 230000008859 change Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 6
- 230000018109 developmental process Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 239000012467 final product Substances 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a data item calibration method based on a JSP page, belonging to a data item calibration method. A javaScript script file is written in JSP and is calibrated. The invention comprises (1) JSP, data item description, other page display contents, write-in data item and page submitting triggering; (2) a calibrating rule controller, an data item and route configuration of the calibrating rule, wherein the calibrating rule controller serves as a configuration file to store the corresponding relation of the data item and calibrating rule identification, is in an XML form and can realize rule route by simple configuration; and (3) a calibration database, comprising a public function, an arithmometer and a user-defined function library. Compared with the prior art, the data item calibration method based on a JSP page of the invention is simple and flexible, has low cost, can improve system development efficiency and can lower the technical requirements of on-site implementing maintenance personnel.
Description
Technical field
The present invention relates to a kind of data item calibration method, specifically a kind of data item calibration method based on the JSP page.
Background technology
Usually can be divided into three layers on the architectural framework of software: interface presentation layer, Business Logic, data access layer.Usually the interface presentation layer is as the platform of system and user interactions, and the verification that the user passes through the front page layout logging data is foreground developer's focus often.The verification of correctness of logging data is divided into foreground verification and backstage verification, common method of calibration is directly to write the javaScript script to carry out verification in JSP (Java Server Pages) at present, or use label to carry out the typing restriction, and the Ajax technology that comes into vogue is in recent years carried out the backstage verification.Because different business demand and technical limitation; change owing to business demand or particular service rule needs through regular meeting; the foreground developer revises same verification rule script simultaneously at the different pages; or make label again to meet customer need this work loaded down with trivial details, consuming time beyond doubt.
In addition, in system implementation or the maintenance process, the problem of verification rule change often takes place in meeting equally, makes the enforcement work of maintenance personnel comparatively loaded down with trivial details, to implementing maintainer's the also corresponding raising of technical requirement, therefore need a kind of configurable rule method of calibration equally.
Summary of the invention
Technical assignment of the present invention provide a kind of flexibly simple, cost is low, can improve the efficient of system development, can reduce a kind of data item calibration method based on the JSP page of field conduct maintainer's technical requirement again.
Technical assignment of the present invention is realized in the following manner, writes the javaScript script file and carry out verification in JSP, comprises (1), JSP, and data item description and other pages are showed content, and the logging data item and the page are submitted to and triggered; (2), verification rule controller, the routing configuration of data item and verification rule; Verification rule controller is the XML form as the corresponding relation of configuration file store data item and verification rule sign, can pass through easy configuration implementation rule route; (3), the verification function library, comprise public function, arithmometer, self-defining function storehouse;
Steps flow chart is:
Configuration verification rule controller, according to business demand configuration data items and required verification rule thereof respectively, data item can corresponding a plurality of verification rules; The configuration association data item is to corresponding legitimacy rule method of calibration;
By the initialization of the JSP page, load verification rule array and verification rule fragment respectively; When the intact data item of the every typing of user, trigger the single data items verification, by the corresponding verification rule of verification rule array loading data item, carry out regular verification and return miscue information; Finish when all data item typings, when carrying out page submission, trigger the verification of associated data item, by the verification rule fragment that loads the legitimacy of associated data item is carried out verification, and return miscue information; Errorless as all data item typings, then submit to the backstage to carry out business processing.
Write the javaScript script file in JSP, the checking routine that the assembling of javaScript script file is required carries out the data item verification according to the verification parameter of regularity, and back-checking miscue information.
Public function is used for that common data verification method, arithmometer are used for data addition subtraction multiplication and division operational method, the self-defining function storehouse is used for particular service rule method of calibration in the verification function library.
The single data items verification realizes the legitimacy verification to the individual data item; When the data item input finishes, when lose cursor focus or choose etc. operated, trigger verification; System user triggers the single data items verification in the every typing of the JSP page data item that finishes, and disposes the required method of calibration of this data item through verification rule controller and carries out verification, and return miscue information.
The verification of associated data item realizes the legitimacy verification of consistance, integrality between a plurality of data item; When system user finishes when submitting to total data item input, trigger verification; When system user finishes when submitting to total data item input, trigger the verification of associated data item, the legitimacy verification rule through between verification rule controller configuration association data item is carried out verification, and returns miscue information.
Verification rule controller is the XML form, can pass through easy configuration implementation rule route.Form is as follows:
<jsp file name 〉
<! The verification of-single data items--〉
<data item A 〉
<verification rule sign 1 〉
</data item A 〉
<data item B 〉
<verification rule sign 1 〉
<verification rule sign 2 〉
<verification rule sign 3 〉
……
</data item B 〉
<! The verification of-associated data item--〉
<verification rule sign 1 〉
<data item A 〉
<data item B 〉
……
</verification rule sign 1 〉
</jsp file name 〉
JSP (Java Server Pages) 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 is to insert java applet section (Scriptlet) and JSP mark (tag) in traditional webpage html file (* .htm, * .html), thereby forms jsp file (* .jsp).Web application with the JSP exploitation is cross-platform, can move under Linux, also can move on other operating systems.
Javascript is a kind of case sensitive client script language of OO regime type of the prototype succession that is come by the LiveScript development of Netscape, fundamental purpose is for the settlement server end instruction, such as Perl, the speed issue of leaving over is for the client provides more smooth result of browse.
No matter the development phase still implements or maintenance phase, use above-mentioned data item calibration method, if the change of generation demand only needs that unified increasing change the verification rule in the javaScript script, in verification rule controller, be configured then to get final product.Not only can improve the efficient of system development, can reduce field conduct maintainer's technical requirement again.
A kind of data item calibration method based on the JSP page of the present invention has successfully applied in the system development under the tide J2EE framework, and form distinctive verification rule repository, needed verification rule is retrieved at verification rule repository by project teams, and is configured by the verification rule controller of XML form.Advantage is: make the foreground developer need not write mass data item verification script, thus very effective development difficulty, the development risk that reduces the interface, foreground.In addition, this method is simple flexibly, when the generation demand changes, does not need make amendment page program and compiling, can finish adjustment work.Effectively reduced that software systems are implemented and maintenance process in cost and risk and exploitation, the implementation cost of software vendor.Make the individual demand that software systems can the fast adaptation user, satisfy the constantly long-term objective of development and perfect information system of user.Thereby, have good value for applications.
Description of drawings
The present invention is further described below in conjunction with accompanying drawing.
Accompanying drawing 1 is a kind of page verification rule route matrix synoptic diagram of the data item calibration method based on the JSP page;
Accompanying drawing 2 is a kind of checking process figure of the data item calibration method based on the JSP page;
Accompanying drawing 3 and accompanying drawing 4 are a kind of JSP page initialization synoptic diagram of the data item calibration method based on the JSP page.
Embodiment
Explain below with reference to Figure of description and specific embodiment a kind of data item calibration method based on the JSP page of the present invention being done.
Embodiment:
As shown in Figure 1; Configuration by verification rule controller assemblies realization verification rule can be divided into single data items verification, associated data item verification two classes.
A kind of data item calibration method based on the JSP page of the present invention is write the javaScript script file and is carried out verification in JSP, comprise (1), JSP, and data item description and other pages are showed content, and the logging data item and the page are submitted to and triggered; (2), verification rule controller, the routing configuration of data item and verification rule; Verification rule controller is the XML form as the corresponding relation of configuration file store data item and verification rule sign, can pass through easy configuration implementation rule route; (3), the verification function library, comprise public function, arithmometer, self-defining function storehouse;
Steps flow chart is:
Configuration verification rule controller, according to business demand configuration data items and required verification rule thereof respectively, data item can corresponding a plurality of verification rules; The configuration association data item is to corresponding legitimacy rule method of calibration;
As shown in Figure 2, by JSP page initialization (as shown in Figure 3, Figure 4), load verification rule array and verification rule fragment respectively; When the intact data item of the every typing of user, trigger the single data items verification, by the corresponding verification rule of verification rule array loading data item, carry out regular verification and return miscue information; Finish when all data item typings, when carrying out page submission, trigger the verification of associated data item, by the verification rule fragment that loads the legitimacy of associated data item is carried out verification, and return miscue information; Errorless as all data item typings, then submit to the backstage to carry out business processing.
Write the javaScript script file in JSP, the checking routine that the assembling of javaScript script file is required carries out the data item verification according to the verification parameter of regularity, and back-checking miscue information.
Public function is used for that common data verification method, arithmometer are used for data addition subtraction multiplication and division operational method, the self-defining function storehouse is used for particular service rule method of calibration in the verification function library.
The single data items verification realizes the legitimacy verification to the individual data item; When the data item input finishes, when lose cursor focus or choose etc. operated, trigger verification; System user triggers the single data items verification in the every typing of the JSP page data item that finishes, and disposes the required method of calibration of this data item through verification rule controller and carries out verification, and return miscue information.
The verification of associated data item realizes the legitimacy verification of consistance, integrality between a plurality of data item; When system user finishes when submitting to total data item input, trigger verification; When system user finishes when submitting to total data item input, trigger the verification of associated data item, the legitimacy verification rule through between verification rule controller configuration association data item is carried out verification, and returns miscue information.
Verification rule controller is the XML form, can pass through easy configuration implementation rule route.Form is as follows:
<jsp file name 〉
<! The verification of-single data items--〉
<data item A 〉
<verification rule sign 1 〉
</data item A 〉
<data item B 〉
<verification rule sign 1 〉
<verification rule sign 2 〉
<verification rule sign 3 〉
……
</data item B 〉
<! The verification of-associated data item--〉
<verification rule sign 1 〉
<data item A 〉
<data item B 〉
……
</verification rule sign 1 〉
</jsp file name 〉
No matter the development phase still implements or maintenance phase, use above-mentioned data item calibration method, if the change of generation demand only needs that unified increasing change the verification rule in the javaScript script, in verification rule controller, be configured then to get final product.
Except that the described technical characterictic of instructions, be the known technology of those skilled in the art.
Claims (5)
1. the data item calibration method based on the JSP page is write the javaScript script file and is carried out verification in JSP, it is characterized in that comprising (1), JSP, and data item description and other pages are showed content, and the logging data item and the page are submitted to and triggered; (2), verification rule controller, the routing configuration of data item and verification rule; Verification rule controller is the XML form as the corresponding relation of configuration file store data item and verification rule sign, can pass through easy configuration implementation rule route; (3), the verification function library, comprise public function, arithmometer, self-defining function storehouse;
Steps flow chart is:
Configuration verification rule controller, according to business demand configuration data items and required verification rule thereof respectively, data item can corresponding a plurality of verification rules; The configuration association data item is to corresponding legitimacy rule method of calibration;
By the initialization of the JSP page, load verification rule array and verification rule fragment respectively; When the intact data item of the every typing of user, trigger the single data items verification, by the corresponding verification rule of verification rule array loading data item, carry out regular verification and return miscue information; Finish when all data item typings, when carrying out page submission, trigger the verification of associated data item, by the verification rule fragment that loads the legitimacy of associated data item is carried out verification, and return miscue information; Errorless as all data item typings, then submit to the backstage to carry out business processing.
2. a kind of data item calibration method according to claim 1 based on the JSP page, it is characterized in that in JSP, writing the javaScript script file, the checking routine that the assembling of javaScript script file is required, carry out the data item verification according to the verification parameter of regularity, and back-checking miscue information.
3. a kind of data item calibration method based on the JSP page according to claim 1 is characterized in that in the verification function library that public function is used for that common data verification method, arithmometer are used for data addition subtraction multiplication and division operational method, the self-defining function storehouse is used for particular service rule method of calibration.
4. a kind of data item calibration method based on the JSP page according to claim 1 is characterized in that the single data items verification, realizes the legitimacy verification to the individual data item; When the data item input finishes, when lose cursor focus or choose etc. operated, trigger verification; System user triggers the single data items verification in the every typing of the JSP page data item that finishes, and disposes the required method of calibration of this data item through verification rule controller and carries out verification, and return miscue information.
5. a kind of data item calibration method based on the JSP page according to claim 1 is characterized in that the verification of associated data item, realizes the legitimacy verification of consistance, integrality between a plurality of data item; When system user finishes when submitting to total data item input, trigger verification; When system user finishes when submitting to total data item input, trigger the verification of associated data item, the legitimacy verification rule through between verification rule controller configuration association data item is carried out verification, and returns miscue information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010101551A CN101788950A (en) | 2010-01-27 | 2010-01-27 | Data item calibration method based on JSP page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010101551A CN101788950A (en) | 2010-01-27 | 2010-01-27 | Data item calibration method based on JSP page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101788950A true CN101788950A (en) | 2010-07-28 |
Family
ID=42532171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010101551A Pending CN101788950A (en) | 2010-01-27 | 2010-01-27 | Data item calibration method based on JSP page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101788950A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799690A (en) * | 2012-08-13 | 2012-11-28 | 南京莱斯信息技术股份有限公司 | Method for verifying page input by using database technology |
CN102932332A (en) * | 2012-09-28 | 2013-02-13 | 用友软件股份有限公司 | Data verifying system and data verifying method |
CN102957609A (en) * | 2011-08-26 | 2013-03-06 | 北京大学 | Message routing method and message routing device |
CN103605512A (en) * | 2013-11-05 | 2014-02-26 | 广东电网公司电力科学研究院 | System and method for data verification based on GTechnology platform |
CN104038356A (en) * | 2013-03-04 | 2014-09-10 | 阿里巴巴集团控股有限公司 | Execution method, configuration apparatus and processing apparatus for data route |
CN104239162A (en) * | 2014-09-09 | 2014-12-24 | 北京国双科技有限公司 | Data check method and data check device |
CN107220072A (en) * | 2016-03-21 | 2017-09-29 | 阿里巴巴集团控股有限公司 | Configuration file method of calibration and device based on serialization format |
CN107766417A (en) * | 2017-09-08 | 2018-03-06 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus for being used to submit POI data |
CN107885609A (en) * | 2017-11-08 | 2018-04-06 | 泰康保险集团股份有限公司 | Service conflict processing method and processing device, storage medium and electronic equipment |
CN108228443A (en) * | 2016-12-14 | 2018-06-29 | 北京国双科技有限公司 | A kind of test method and device of web applications |
CN108536817A (en) * | 2018-04-08 | 2018-09-14 | 四川长虹电器股份有限公司 | Method for rapidly positioning based on XBRL verifications |
CN108733362A (en) * | 2018-05-14 | 2018-11-02 | 浪潮通用软件有限公司 | A kind of quality of data method of inspection and device |
CN108809896A (en) * | 2017-04-28 | 2018-11-13 | 阿里巴巴集团控股有限公司 | A kind of information calibration method, device and electronic equipment |
CN109144490A (en) * | 2017-06-27 | 2019-01-04 | 中兴通讯股份有限公司 | A kind of method and device of YANG model extension verification, computer readable storage medium |
CN109710237A (en) * | 2019-01-10 | 2019-05-03 | 厦门商集网络科技有限责任公司 | A kind of online modification method of calibration and equipment based on customized two-dimentional report |
CN110446073A (en) * | 2019-08-20 | 2019-11-12 | 北京奇艺世纪科技有限公司 | A kind of method of calibration and relevant device of video inventory information |
CN111782464A (en) * | 2020-06-22 | 2020-10-16 | 北京异乡旅行网络科技有限公司 | Webpage dynamic abnormity monitoring method and system |
CN112015728A (en) * | 2020-09-08 | 2020-12-01 | 浙江惠瀜网络科技有限公司 | Method for automatically checking acquired data |
CN112615879A (en) * | 2020-12-26 | 2021-04-06 | 中国农业银行股份有限公司 | Network request processing method and device |
-
2010
- 2010-01-27 CN CN201010101551A patent/CN101788950A/en active Pending
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957609A (en) * | 2011-08-26 | 2013-03-06 | 北京大学 | Message routing method and message routing device |
CN102799690A (en) * | 2012-08-13 | 2012-11-28 | 南京莱斯信息技术股份有限公司 | Method for verifying page input by using database technology |
CN102932332A (en) * | 2012-09-28 | 2013-02-13 | 用友软件股份有限公司 | Data verifying system and data verifying method |
CN102932332B (en) * | 2012-09-28 | 2015-10-21 | 用友软件股份有限公司 | Data verification system and data verification method |
CN104038356A (en) * | 2013-03-04 | 2014-09-10 | 阿里巴巴集团控股有限公司 | Execution method, configuration apparatus and processing apparatus for data route |
CN103605512A (en) * | 2013-11-05 | 2014-02-26 | 广东电网公司电力科学研究院 | System and method for data verification based on GTechnology platform |
CN104239162A (en) * | 2014-09-09 | 2014-12-24 | 北京国双科技有限公司 | Data check method and data check device |
CN107220072A (en) * | 2016-03-21 | 2017-09-29 | 阿里巴巴集团控股有限公司 | Configuration file method of calibration and device based on serialization format |
CN108228443A (en) * | 2016-12-14 | 2018-06-29 | 北京国双科技有限公司 | A kind of test method and device of web applications |
CN108809896A (en) * | 2017-04-28 | 2018-11-13 | 阿里巴巴集团控股有限公司 | A kind of information calibration method, device and electronic equipment |
CN109144490A (en) * | 2017-06-27 | 2019-01-04 | 中兴通讯股份有限公司 | A kind of method and device of YANG model extension verification, computer readable storage medium |
CN107766417A (en) * | 2017-09-08 | 2018-03-06 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus for being used to submit POI data |
CN107885609A (en) * | 2017-11-08 | 2018-04-06 | 泰康保险集团股份有限公司 | Service conflict processing method and processing device, storage medium and electronic equipment |
CN108536817A (en) * | 2018-04-08 | 2018-09-14 | 四川长虹电器股份有限公司 | Method for rapidly positioning based on XBRL verifications |
CN108733362A (en) * | 2018-05-14 | 2018-11-02 | 浪潮通用软件有限公司 | A kind of quality of data method of inspection and device |
CN109710237A (en) * | 2019-01-10 | 2019-05-03 | 厦门商集网络科技有限责任公司 | A kind of online modification method of calibration and equipment based on customized two-dimentional report |
CN110446073A (en) * | 2019-08-20 | 2019-11-12 | 北京奇艺世纪科技有限公司 | A kind of method of calibration and relevant device of video inventory information |
CN111782464A (en) * | 2020-06-22 | 2020-10-16 | 北京异乡旅行网络科技有限公司 | Webpage dynamic abnormity monitoring method and system |
CN111782464B (en) * | 2020-06-22 | 2024-04-26 | 北京异乡旅行网络科技有限公司 | Webpage dynamic anomaly monitoring method and system |
CN112015728A (en) * | 2020-09-08 | 2020-12-01 | 浙江惠瀜网络科技有限公司 | Method for automatically checking acquired data |
CN112615879A (en) * | 2020-12-26 | 2021-04-06 | 中国农业银行股份有限公司 | Network request processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101788950A (en) | Data item calibration method based on JSP page | |
US10929116B2 (en) | Generation of dynamic software models using input mapping with feature definitions | |
US10628132B2 (en) | Inversion of control framework for multiple behaviors of a process | |
US20110138283A1 (en) | Composite copy and paste for composite user interfaces | |
CN112720452A (en) | Naming robot process automation activities according to automatically detected target tags | |
US20180095604A1 (en) | Rendering components based on screen size | |
CN101576823A (en) | Method for verifying form control and device | |
CN102999551A (en) | Automatic scoping of data entities | |
CN103399753A (en) | Software framework | |
CN102043626A (en) | Method and device for encapsulating extjs component, and method and system for generating user interface | |
EP1830275A1 (en) | Information distribution system | |
US20090024639A1 (en) | Data mapping and import system | |
CN103646049A (en) | Method and system for automatically generating data report | |
CN101320388A (en) | Method and apparatus for filtering documents according to documents state | |
US11430163B2 (en) | Displaying a chart without rendering entirely obscured markers | |
EP1460572A2 (en) | Parameterized and reusable implementations of business logic patterns | |
US10445695B2 (en) | Method and system for providing continuous reference architecture and bill of material modeling | |
US11675571B1 (en) | Restructuring enterprise application | |
CN112199080B (en) | Webpack construction method and equipment for vuejs project | |
CN103246962A (en) | Enterprise comprehensive information management system | |
US11294644B2 (en) | Inversion of control framework for multiple behaviors on top of a process | |
US20090099945A1 (en) | Methods and systems for directory-based programming | |
KR20240069235A (en) | Digitial agency-based growth hacking testing platform | |
US20210149646A1 (en) | Orthogonal path renderer for natural looking sequence flows | |
Gunda | Candidate Declaration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20100728 |