Data item calibration method based on JSP page
A verification method and technology for data items, applied in the field of data item verification, can solve problems such as time-consuming, cumbersome, and tedious work for implementation and maintenance personnel, and achieve the effects of reducing costs and risks, reducing development difficulty, and promoting the use value.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2010-07-28
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to a method for checking data items, in particular to a method for checking data items based on JSP pages. Background technique
[0002] The software architecture can usually be divided into three layers: interface presentation layer, business logic layer, and data access layer. Usually, the interface presentation layer serves as a platform for the interaction between the system and the user. The verification of the data entered by the user through the front-end page is often the focus of the front-end developers. The correctness verification of input data is divided into foreground verification and background verification. At present, the common verification method is to directly write javaScript scripts in JSP (Java Server Pages) for verification, or use tags to limit the entry, and it has become popular in recent years. Ajax technology for background verification. Due to different business requirements and technical constrain...
Examples
Embodiment
[0042] Such as figure 1 As shown; the configuration of verification rules is realized through the verification rule controller component, which can be divided into two types: single data item verification and associated data item verification.
[0043] A kind of data item checking method based on JSP page of the present invention, write javaScript script file in JSP and check, comprise (1), JSP, data item description and other page display content, input data item and page submission trigger; (2) The verification rule controller, the routing configuration of data items and verification rules; the verification rule controller is used as a configuration file to store the corresponding relationship between data items and verification rule identifiers, which is in XML format, and the rules can be realized through simple configuration Routing; (3), verification function library, including public functions, four arithmetic operators, and custom function library;
[0044] The steps ...