CN101075989A - Method and system for verifying field validity - Google Patents

Method and system for verifying field validity Download PDF

Info

Publication number
CN101075989A
CN101075989A CN 200710090059 CN200710090059A CN101075989A CN 101075989 A CN101075989 A CN 101075989A CN 200710090059 CN200710090059 CN 200710090059 CN 200710090059 A CN200710090059 A CN 200710090059A CN 101075989 A CN101075989 A CN 101075989A
Authority
CN
China
Prior art keywords
xml
field
configuration information
file table
configuration 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.)
Granted
Application number
CN 200710090059
Other languages
Chinese (zh)
Other versions
CN101075989B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2007100900594A priority Critical patent/CN101075989B/en
Publication of CN101075989A publication Critical patent/CN101075989A/en
Application granted granted Critical
Publication of CN101075989B publication Critical patent/CN101075989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The method comprises: pre-configuring the configuration file list of extensible markup language (XML) field; said configuration file list of extensible markup language field comprises the XML configuration information used for examining the validity of the inputted field. The method also comprises: receiving an inputted field; revolving the configuration file list of XML field in order to get XML configuration information, and according to the XML configuration information, to examine the validity of the inputted field. The invention, the cost of modifying source code and the time of editing and releasing the software can be saved.

Description

A kind of method and system of verifying field validity
Technical field
The present invention relates to computer application (Application) technical field, more particularly, the present invention relates to a kind of method and system of verifying field validity.
Background technology
Along with the continuous maturation of Internet technology, the Internet becomes the important platform that people obtain information, interchange, amusement, the merchant of battalion etc. day by day.Internet architecture is made up of Web server, client and HTTP(Hypertext Transport Protocol).In the various Web interface and the applications of computer network, have the demand of the field of user's input being carried out validation verification usually.Whether whether meet the passport NO. of call format, checking user input such as, the e-mail address of checking user input legal or the like.
Not only, in various software developments, also have the demand of input field being carried out validation verification in this.The user uses software to reach simplification work, the convenient purpose of using usually.The general user uses software to carry out processing such as the storage of information and renewal synchronously, and the user carries out the typing of various information by the operation entry of software, and the information data of common this typing all has the judgement of certain validity.For example: the Email address information of user's typing must all be a letter and number, and has certain call format; The phone number of user's typing or telephone number can only be Roman numbers, and have certain length restriction, therefore have in software in a large number user input data is carried out the logical code that validity is judged.
Along with the continuous development of network and software engineering, the complicated more function that more and more complexity also also are provided that software becomes, the data of user's input also constantly increase thereupon, so the judgment rule of service logic also becomes increasingly complex.For example: the form of former Email number of the account must have ". " in " " back, and the front does not need ". ", but also supports the various Email forms that are not limited to this requirement now.In addition, for phone number or telephone number, figure place originally can increase gradually, so its call format also can correspondingly change.The change of various call formats has caused decision logic to be in a kind of state of change, just can support if support this change must allow the personnel of specializing in that the decision logic code is made amendment, and this must take time and effort, make cost be difficult to control, therefore this mode has been not suitable for current software development needs.
More specifically, in current client software, validity for some field of user input is judged, for example for the number of user input, phone number or Email, perhaps the coding of the length of some attribute field and acceptance regulation all is that the mode of carrying out hard coded in program is judged, promptly in program, provide certain API (API) function to judge the composition rule of certain field by the validity judge module, length or the character code that belongs to, the validity of each field is judged must write processing by independent function, has no idea not revise code and revises the judgment processing logic.
From above-mentioned existing techniques in realizing scheme, change frequent client software for business, prior art is unfavorable for that follow-up adaptation changes, for example for the variation of the form of some field, the developer must revise the validity judgment processing logic of some field, could effectively change this demand.And concerning the user, the user may just relate to the auto-update program just can adapt to this variation, so prior art is unfavorable for the business change of client software, also is unfavorable for user's use.
This shows, no matter be in network application or the various software development, perhaps in other any possibility application places, all can have pair field to carry out the demand of validation verification, but specific implementation of the prior art but can't adapt to follow-up business to be changed, and is unfavorable for the corresponding business change.
Summary of the invention
In view of this, main purpose of the present invention is the method that proposes a kind of verifying field validity, changes to adapt to follow-up business.
Another object of the present invention is the system that proposes a kind of verifying field validity, changes to adapt to follow-up business.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method of verifying field validity, but pre-configured extension flag language (XML) field configuration file table, described XML field configuration file table includes the XML configuration information that is used to verify input field validity, and this method also comprises:
Input-capable field;
Resolve described XML field configuration file table obtaining the XML configuration information, and described input field is carried out validation verification according to described XML configuration information.
This method further comprises:
Upgrade the XML configuration information in the described XML field configuration file table, resolve described XML field configuration file table obtaining the XML configuration information after the renewal, and described input field is carried out validation verification according to the XML configuration information after the described renewal.
Described XML field configuration file table comprises multiple XML configuration information and is used to distinguish the root element of XML configuration information;
Described analyzing XML field configuration file table to be obtaining the XML configuration information, and according to the XML configuration information described input field carried out validation verification and comprise:
Traversal XML field configuration file table obtains the multiple XML configuration information corresponding to root element;
According to the multiple XML configuration information that is obtained, a plurality of input fields corresponding to a plurality of input modules are carried out validation verification respectively.
Described analyzing XML field configuration file table to be obtaining the XML configuration information, and according to the XML configuration information input field carried out validation verification and comprise:
Traversal XML field configuration file table generates the mapping corresponding relation between XML configuration information title Key and the XML configuration information identifying object Object;
According to the pairing input module of input field, determine XML configuration information title Key, and utilize XML configuration information identifying object Object that input field is carried out validation verification corresponding to determined XML configuration information title Key corresponding to this input module.
A kind of system of verifying field validity, this system comprises the server and client side, wherein:
Server is used to dispose XML field configuration file table, and the XML field configuration file table that is disposed is sent to client, and described XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Client is used to receive described XML field configuration file table and input field, resolves described XML field configuration file table obtaining the XML configuration information, and according to described XML configuration information described input field is carried out validation verification.
Described server comprises file table dispensing unit and information transmission unit, wherein
File table dispensing unit is used to dispose XML field configuration file table, and described XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Information transmission unit, the XML field configuration file table that is used for file table dispensing unit is disposed sends to client.
Described client comprises information receiving unit, resolution unit and validation verification unit, wherein
Information receiving unit is used to receive described XML field configuration file table and input field;
Resolution unit is used to resolve described XML field configuration file table to obtain the XML configuration information;
The validation verification unit is used for according to described XML configuration information described input field being carried out validation verification.
Described server be further used for upgrading the XML configuration information in the described XML field configuration file table, and the XML field configuration file table after will upgrading sends to client;
Described client, be further used for receiving described renewal back XML field configuration file table, resolve XML field configuration file table after the described renewal obtaining the XML configuration information after the renewal, and input field is carried out validation verification according to the XML configuration information after upgrading.
Being connected between the described server and client side:
The network that utilizes transmission control protocol (TCP) to set up connects; Perhaps
The network that utilizes HTTP(Hypertext Transport Protocol) to set up connects; Perhaps
The network that utilizes file transfer protocol (FTP) (FTP) to set up connects.
Described XML field configuration file table comprises multiple XML configuration information and is used to distinguish the root element of XML configuration information;
Described client is used to travel through XML field configuration file table, obtains the multiple XML configuration information corresponding to root element, and according to the multiple XML configuration information that is obtained, a plurality of input fields corresponding to a plurality of input modules is carried out validation verification respectively.
Described client is used to travel through XML field configuration file table, generates the mapping corresponding relation between XML configuration information title Key and the XML configuration information identifying object Object;
According to the pairing input module of input field, determine XML configuration information title Key, and utilize XML configuration information identifying object Object that input field is carried out validation verification corresponding to determined XML configuration information title Key corresponding to this input module.
Described server is further used for client is carried out authentication, and only sends XML field configuration file table to the client by authentication.
From technique scheme as can be seen, in the present invention: pre-configured XML field configuration file table, this XML field configuration file table includes the XML configuration information that is used to verify input field validity, and then analyzing XML field configuration file table to be obtaining the XML configuration information, and according to the XML configuration information input field carried out validation verification.See thus, the present invention only need carry out Walkthrough to specific XML field configuration file table, and according to the given application example in the XML field configuration file table, the validity that certain is specific is handled and is applied to validity judgement engine, allow to revise or replace validity and judge, and need not to visit the source code that field validity is judged engine, thereby can need carry out the application that validity is judged by registration from this XML field configuration file table or releasing simply, change the judgment processing flow process.Therefore the present invention can adapt to follow-up business variation, and improved the validity of client software in this way greatly, the present invention has simultaneously also saved the time that the developer revises source code, composing software and releasing software, remove the inconvenience that automatic software update brings to the user from, and significantly reduced development cost.
Description of drawings
Fig. 1 is the exemplary flow schematic diagram of the method for the verifying field validity according to the present invention;
Fig. 2 is the example system structure chart of the system of the verifying field validity according to the present invention;
Fig. 3 is the example system structure chart according to the system of embodiment of the invention verifying field validity.
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Fig. 1 is the exemplary flow schematic diagram of the method for the verifying field validity according to the present invention.As shown in Figure 1, this method comprises:
Step 101: but configuration extension flag language (XML) field configuration file table, and described XML field configuration file table includes the XML configuration information that is used to verify input field validity.
The composition of XML field configuration file table carries out the tissue of information according to XML, and XML is a kind of file format, and with the form labeled data of label, the exemplary format of XML field configuration file table is as follows:
<Group?name=“ConfigUI”>
<UserName?length=“25”InputType=”All”/>
<Gender?length=“1”InputType=”NumOnlye/>
<Email?length=”50”InputType=”AlphaAndNumb”Include=“@”/>
</Group>
Wherein, Group name represents the name of group (Group); UserName represents address name, and allowing length is 25, and input type is any; Gender represents sex, and allowing length is 1, and input type can only be a numeral; Email represents the Email address, and allowing length is 50, and input type is a letter and number, and must comprise " @ ".
Preferably, XML field configuration file table can comprise multiple XML configuration information and be used to distinguish the root element of XML configuration information.The root element of XML field configuration file table represents to belong to the field validity judgement of concrete certain input module, because the validity of the field that each input module limited is different, therefore need separately handle.
Be the field validity Rule of judgment of relevant group's module (Group) in the exemplary example that provides above, can comprise a plurality of various modules that are similar to group module in fact.Such as: two modules can be arranged in program, be respectively group administration module and contact person (Contact) administration module, group's administration module mainly is responsible for the management of group information, and contact management's module mainly is responsible for the management of contact person's essential information.Part can adopt Chinese form as bookmark name in the XML field configuration file table, and also can adopt English.As follows to complete XML field configuration file table that should application program:<ValidateInfo 〉
<Group name=" group members information " 〉
<member Name length=" 25 " InputType=" All "/
<member sex length=" 1 " InputType=" NumOnly/ 〉
<addresses of items of mail length=" 50 " InputType=" AlphaAndNumb "
Include=“@”/>
</Group>
<Contact name=" essential information " 〉
<pet name length=" 25 " InputType=" All "/
<telephone number length=" 15 " InputType=" NumOnly "/
<phone number length=" 16 " InputType=" NumOnly "/
<remark information length=" 20 " InputType=" AlphaAndNumb "/
</Contact></ValidateInfo>
Similarly, Contact name represents the essential information of contact person (Group); " pet name " expression contact person pet name, allowing length is 25, input type is any; " telephone number " expression contact person's telephone number, allowing length is 15, input type can only be a numeral; " phone number " expression contact person's phone number, allowing length is 16, input type can only be a numeral; Remark information is represented contact person's remark information, and allowing length is 20, and input type is a letter and number.
Step 102: input-capable field, resolve described XML field configuration file table obtaining the XML configuration information, and described input field is carried out validation verification according to described XML configuration information.
Wherein, when XML field configuration file table comprised multiple XML configuration information and is used to distinguish the root element of XML configuration information, traversal XML field configuration file table obtained the multiple XML configuration information corresponding to root element; According to the multiple XML configuration information that is obtained, a plurality of input fields corresponding to a plurality of input modules are carried out validation verification respectively.
Alternatively, can also travel through XML field configuration file table, generate the mapping corresponding relation between XML configuration information title Key and the XML configuration information identifying object Object; According to the pairing input module of input field, determine XML configuration information title Key, and utilize XML configuration information identifying object Object that input field is carried out validation verification corresponding to determined XML configuration information title Key corresponding to this input module.
Particularly: after having loaded XML field configuration file table, at first set up Map (Key-Object tabulation) mapping (enum) data structure, each Object object comprises field name, field length, field type and spcial character collection etc.; Then XML field configuration file table is resolved, generate the Map mapping relations of Key-Object according to different modules; The user after the input field, judges whether have corresponding validity to judge in the Map mapping relations according to the module title that the operation interface object imports in inputting interface; If have, obtain so claiming the checking Object of key correspondence to tabulate by module name, according to current field name, traversal is obtained data such as its corresponding field length, field type; Judge according to the Object object that obtains whether the field that the user imports meets the XML configuration information then, for example whether length surpasses etc., returns to operation interface at last; Whether operation interface is successfully imported according to return information prompting user again.
Such as, Map data structure at the Key-Object tabulation, if for the group's module among the XML, the Key of the Map relational data structure of its generation is exactly " Group ", and the Object tabulation is exactly each following field, and for example the field name of the Object of member Name's correspondence is exactly " MemberName ", field length is exactly 25, the field classification is exactly the All type, promptly can be numeral, letter etc.The root element of XML file represents specifically to belong to the field validity judgement of which module, because the validity of the field that each module limited is different, therefore can separately handle, it in the example that for example provides above the field validity Rule of judgment of relevant group's module, the length restriction of Email is 50 bytes, and input type can be that the letter and number and the character that need comprise are " @ ".
When XML field configuration file table is resolved, can form according to each different element module and generate corresponding field validity administration module, the field validity administration module carries out judgment processing to the validity of the input information of corresponding program module respectively.
Preferably, when the user has imported corresponding data information in certain graphic user interface when, the validity of the module name query correspondence that this data message at first belongs to according to user interface is judged whether administration module has at the validity of this module and is judged the field information table, if do not have then the directly default logic of caller, otherwise just inquire about corresponding validity management object.At the relevant data message of Walkthrough user input, with corresponding effectiveness condition compare handle after, if meet business need, then pass through, re-enter certain field information otherwise eject the corresponding prompt user, up to reaching the validity input.
As seen, the present invention proposes a kind of technology implementation method based on dynamic extendible validation verification, the defective that all adopts the mode of hard coded to handle at the concrete validity judgment processing logic of using some field such as active client software, the present invention can adapt to this type of change, fully variation is detached out.
Particularly, if the present invention is applied in the client software, client software carries out Walkthrough to specific XML field configuration file table, and according to the given application example in this validity judgement list file, the validity that certain is specific is handled and is applied to validity judgement engine, allow to revise or replace validity and judge, and need not to visit the source code that field validity is judged engine, thereby can register the list file or remove and to carry out the application that validity is judged by judging simply from this validity, change the judgment processing flow process, improve the validity of client software in this way greatly, also saved the time of developer and user's update software simultaneously.
Further, method flow shown in Figure 1 can also comprise step 103, wherein:
Step 103: upgrade the XML configuration information in the described XML field configuration file table, resolve described XML field configuration file table obtaining the XML configuration information after the renewal, and described input field is carried out validation verification according to the XML configuration information after the described renewal.
Particularly, after the business change, the developer revises the effective capable judgment data information XML table of respective modules, and client software upgrades synchronously:
When certain professional generation is changed, certain the specific modules data in the general professional corresponding program here.For example for group business, because dilatation data, can allow group's notice information that the user imports comprise more and abundant content more, this time, as long as the developer was the relevant information of the corresponding element in the data XML table of the corresponding group business correspondence of update service device and increase and upgrade sequence number; Behind the client software logon network, promptly connect corresponding server, after connecting with server, transmission is obtained validity and is judged that the data protocol of renewal sequence number of XML tables of data is to server, the effective data packets that server sends according to client is confirmed to be obtains the agreement of upgrading sequence number, then returns corresponding new renewal serial number.
The renewal sequence number information data that client software returns according to server, utilize local memory module to obtain the sequence number information of local storage, relatively the back finds that sequence number is lower than the sequence number that server returns, the version that server then is described upgrades, and then sends the specific XML tables of data that request need pull server; Client software utilizes certain protocol, and for example the data transmission channel between foundation of TCP or http protocol and the server after server is confirmed to be effective client, utilizes the new XML tables of data of the data channel loopback correspondence of setting up to give client software.
Client software is after dedicated tunnel is finished acceptance to new XML tables of data, utilize local memory module to preserve corresponding data and flow to local file system, and notice client software, XML validity Rule of judgment tables of data is upgraded, the original effective judgement management object of business module deletion in the program then utilizes the XML parsing module that new XML judgment data table is reloaded and the validity that generates new each module of correspondence is judged management object.
So just can realize that the developer simply and has efficiently revised the validity judgment processing logic of client software this locality, to the user also without any interference, improved the ease for use and the extensibility of software greatly.
At above-mentioned flow process, the invention allows for a kind of system of verifying field validity.Fig. 2 is the example system structure chart of the system of the verifying field validity according to the present invention.As shown in Figure 2, this system comprises server 201 and client 202, wherein:
Server 201 is used to dispose XML field configuration file table, and the XML field configuration file table that is disposed is sent to client 202, and described XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Client 202 is used to receive described XML field configuration file table and input field, resolves described XML field configuration file table obtaining the XML configuration information, and according to described XML configuration information described input field is carried out validation verification.
Preferably,
Described server 201 be further used for upgrading the XML configuration information in the described XML field configuration file table, and the XML field configuration file table after will upgrading sends to client;
Described client 202, be further used for receiving described renewal back XML field configuration file table, resolve XML field configuration file table after the described renewal obtaining the XML configuration information after the renewal, and input field is carried out validation verification according to the XML configuration information after upgrading.
And, the connection between described server 201 and the client 202 can for: the network that utilizes transmission control protocol (TCP) to set up connects; The network that perhaps utilizes HTTP(Hypertext Transport Protocol) to set up connects; The network that perhaps utilizes file transfer protocol (FTP) (FTP) to set up connects.
Though more than describe some concrete network connection protocols in detail, but those skilled in the art can recognize, enumerating herein only for exemplary, and be not used in the present invention is limited, the network between server 201 and the client 202 connects and can use available network agreement arbitrarily in fact.
Wherein, described XML field configuration file table can comprise multiple XML configuration information and be used to distinguish the root element of XML configuration information; At this moment
Described client 202 is used to travel through XML field configuration file table, obtains the multiple XML configuration information corresponding to root element, and according to the multiple XML configuration information that is obtained, a plurality of input fields corresponding to a plurality of input modules is carried out validation verification respectively.
Described client 202 is used to travel through XML field configuration file table, generates the mapping corresponding relation between XML configuration information title Key and the XML configuration information identifying object Object;
Can also be according to the pairing input module of input field, determine XML configuration information title, and utilize XML configuration information identifying object Object that input field is carried out validation verification corresponding to determined XML configuration information title corresponding to this input module.
Server 201 is further used for client is carried out authentication, and only sends XML field configuration file table to the client by authentication.
Server 201 and/or client 202 can comprise that corresponding logic function unit makes up the realization above-mentioned functions.Such as, be described in detail with a specific embodiment below.
Fig. 3 is the example system structure chart according to the system of embodiment of the invention verifying field validity.As shown in Figure 3, this system comprises server 301 and client 302, and wherein server 301 is corresponding to the server among Fig. 2 201, and client 302 is corresponding to the server among Fig. 2 301.
Particularly, server 301 file table dispensing unit 3011 and information transmission units 3012, file table dispensing unit 3011 is used to dispose XML field configuration file table, and described XML field configuration file table includes the XML configuration information that is used to verify input field validity; Information transmission unit 3012, the XML field configuration file table that is used for file table dispensing unit is disposed sends to client 302.
Client 302 comprises information receiving unit 3021, resolution unit 3022 and validation verification unit 3023.
Information receiving unit 3021 is used for receiving the XML field configuration file table that the information transmission unit 3012 by server 301 is sent, and information receiving unit 3021 also is used to receive the input field that comes from user's input;
Resolution unit 3022 is used to resolve described XML field configuration file table to obtain the XML configuration information;
Validation verification unit 3023 is used for according to described XML configuration information described input field being carried out validation verification.
To sum up, a kind of technic relization scheme that utilization the present invention proposes based on dynamic extendible validation verification, client software only need carry out Walkthrough to specific XML field configuration effective document, and according to the given application example in this validity judgement list file, the validity processing that certain is specific is applied to validity and judges that engine allows to revise or replace the validity judgement, and need not to visit the source code that field validity is judged engine, can simply register the list file or remove and to carry out the application that validity is judged by judging from this validity, change the judgment processing flow process, improved the validity of client software in this way, simultaneously also save the developer and revised source code, the time of composing software and releasing software, also removed the inconvenience that automatic software update brings to the user in addition greatly from.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1, a kind of method of verifying field validity is characterized in that, but pre-configured extension flag Language XML field configuration file table, described XML field configuration file table includes the XML configuration information that is used to verify input field validity, and this method also comprises:
Input-capable field;
Resolve described XML field configuration file table obtaining the XML configuration information, and described input field is carried out validation verification according to described XML configuration information.
2, the method for verifying field validity according to claim 1 is characterized in that, this method further comprises:
Upgrade the XML configuration information in the described XML field configuration file table, resolve described XML field configuration file table obtaining the XML configuration information after the renewal, and described input field is carried out validation verification according to the XML configuration information after the described renewal.
3, the method for verifying field validity according to claim 1 and 2 is characterized in that, described XML field configuration file table comprises multiple XML configuration information and is used to distinguish the root element of XML configuration information;
Described analyzing XML field configuration file table to be obtaining the XML configuration information, and according to the XML configuration information described input field carried out validation verification and comprise:
Traversal XML field configuration file table obtains the multiple XML configuration information corresponding to root element;
According to the multiple XML configuration information that is obtained, a plurality of input fields corresponding to a plurality of input modules are carried out validation verification respectively.
4, the method for verifying field validity according to claim 1 and 2 is characterized in that, described analyzing XML field configuration file table to be obtaining the XML configuration information, and according to the XML configuration information input field is carried out validation verification and comprise:
Traversal XML field configuration file table generates the mapping corresponding relation between XML configuration information title Key and the XML configuration information identifying object Object;
According to the pairing input module of input field, determine XML configuration information title Key, and utilize XML configuration information identifying object Object that input field is carried out validation verification corresponding to determined XML configuration information title Key corresponding to this input module.
5, a kind of system of verifying field validity is characterized in that, this system comprises the server and client side, wherein:
Server is used to dispose XML field configuration file table, and the XML field configuration file table that is disposed is sent to client, and described XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Client is used to receive described XML field configuration file table and input field, resolves described XML field configuration file table obtaining the XML configuration information, and according to described XML configuration information described input field is carried out validation verification.
6, the system of verifying field validity according to claim 5 is characterized in that, described server comprises file table dispensing unit and information transmission unit, wherein
File table dispensing unit is used to dispose XML field configuration file table, and described XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Information transmission unit, the XML field configuration file table that is used for file table dispensing unit is disposed sends to client.
7, the system of verifying field validity according to claim 5 is characterized in that, described client comprises information receiving unit, resolution unit and validation verification unit, wherein
Information receiving unit is used to receive described XML field configuration file table and input field;
Resolution unit is used to resolve described XML field configuration file table to obtain the XML configuration information;
The validation verification unit is used for according to described XML configuration information described input field being carried out validation verification.
8, the system of verifying field validity according to claim 5 is characterized in that,
Described server be further used for upgrading the XML configuration information in the described XML field configuration file table, and the XML field configuration file table after will upgrading sends to client;
Described client, be further used for receiving described renewal back XML field configuration file table, resolve XML field configuration file table after the described renewal obtaining the XML configuration information after the renewal, and input field is carried out validation verification according to the XML configuration information after upgrading.
9, according to the system of claim 5 or 6 described verifying field validities, it is characterized in that being connected between the described server and client side:
The network that utilizes transmission control protocol TCP to set up connects; Perhaps
The network that utilizes HTML (Hypertext Markup Language) HTTP to set up connects; Perhaps
The network that utilizes file transfer protocol (FTP) FTP to set up connects.
According to the system of claim 5 or 6 described verifying field validities, it is characterized in that 10, described XML field configuration file table comprises multiple XML configuration information and is used to distinguish the root element of XML configuration information;
Described client is used to travel through XML field configuration file table, obtains the multiple XML configuration information corresponding to root element, and according to the multiple XML configuration information that is obtained, a plurality of input fields corresponding to a plurality of input modules is carried out validation verification respectively.
11, according to the system of claim 5 or 6 described verifying field validities, it is characterized in that,
Described client is used to travel through XML field configuration file table, generates the mapping corresponding relation between XML configuration information title Key and the XML configuration information identifying object Object;
According to the pairing input module of input field, determine XML configuration information title Key, and utilize XML configuration information identifying object Object that input field is carried out validation verification corresponding to determined XML configuration information title Key corresponding to this input module.
12, according to the system of claim 5 or 6 described verifying field validities, it is characterized in that,
Described server is further used for client is carried out authentication, and only sends XML field configuration file table to the client by authentication.
CN2007100900594A 2007-03-23 2007-03-23 Method and system for verifying field validity Active CN101075989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100900594A CN101075989B (en) 2007-03-23 2007-03-23 Method and system for verifying field validity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100900594A CN101075989B (en) 2007-03-23 2007-03-23 Method and system for verifying field validity

Publications (2)

Publication Number Publication Date
CN101075989A true CN101075989A (en) 2007-11-21
CN101075989B CN101075989B (en) 2012-05-23

Family

ID=38976815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100900594A Active CN101075989B (en) 2007-03-23 2007-03-23 Method and system for verifying field validity

Country Status (1)

Country Link
CN (1) CN101075989B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123099A (en) * 2011-03-18 2011-07-13 中国工商银行股份有限公司 Message processing system and method
CN102426549A (en) * 2011-09-08 2012-04-25 新一站保险代理有限公司 Efficient Web form validation method and framework thereof
WO2012088793A1 (en) * 2010-12-27 2012-07-05 沈阳中科博微自动化技术有限公司 Method for configuring i/o configuration tool parameters for ic device
CN103106186A (en) * 2013-01-22 2013-05-15 百度在线网络技术(北京)有限公司 Form verification method and form verification system
CN107193620A (en) * 2017-04-25 2017-09-22 深圳市景阳科技股份有限公司 The method and device of field verification
CN107273138A (en) * 2017-07-04 2017-10-20 杭州铜板街互联网金融信息服务有限公司 Decoupling method and system based on interaction between Android business modules
CN107315958A (en) * 2016-04-26 2017-11-03 北京京东尚科信息技术有限公司 The legality identification method and device of data object
CN109656744A (en) * 2017-10-11 2019-04-19 北京京东尚科信息技术有限公司 The method and apparatus for realizing data check and injection are explained based on Java

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012088793A1 (en) * 2010-12-27 2012-07-05 沈阳中科博微自动化技术有限公司 Method for configuring i/o configuration tool parameters for ic device
CN102123099A (en) * 2011-03-18 2011-07-13 中国工商银行股份有限公司 Message processing system and method
CN102426549A (en) * 2011-09-08 2012-04-25 新一站保险代理有限公司 Efficient Web form validation method and framework thereof
CN102426549B (en) * 2011-09-08 2013-06-26 新一站保险代理有限公司 Efficient Web form validation method and framework thereof
CN103106186A (en) * 2013-01-22 2013-05-15 百度在线网络技术(北京)有限公司 Form verification method and form verification system
CN107315958A (en) * 2016-04-26 2017-11-03 北京京东尚科信息技术有限公司 The legality identification method and device of data object
CN107193620A (en) * 2017-04-25 2017-09-22 深圳市景阳科技股份有限公司 The method and device of field verification
CN107273138A (en) * 2017-07-04 2017-10-20 杭州铜板街互联网金融信息服务有限公司 Decoupling method and system based on interaction between Android business modules
CN109656744A (en) * 2017-10-11 2019-04-19 北京京东尚科信息技术有限公司 The method and apparatus for realizing data check and injection are explained based on Java

Also Published As

Publication number Publication date
CN101075989B (en) 2012-05-23

Similar Documents

Publication Publication Date Title
CN101075989A (en) Method and system for verifying field validity
CN1114168C (en) Www addressing
CN1114157C (en) Simplified-file hyper text protocol
CN1199126C (en) System and method for providing content on network
CN1196068C (en) Information providing system
CN101079061A (en) Web page screen-cutting system and implementation method
CN1466722A (en) Workflow system capable of managing document version and method for managing document version using the same
CN1913441A (en) Continuous changed data set transmission and updating method
CN1808377A (en) Application-generic sequence diagram generator driven by a non-proprietary language
CN101075320A (en) System and method for issuing and inquiring information
CN1437819A (en) Systems for customizing behaviors and interfaces in service invocations
CN1886976A (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN1732461A (en) Parsing system and method of multi-document based on elements
CN1642114A (en) Hand-held mobile terminal user customized information network back-up method
CN1629792A (en) Image processing apparatus, control method, storing medium and program
CN101042710A (en) Method and system for implementing acquisition data sharing
CN101075239A (en) Composite searching method and system
CN1845119A (en) Storage and management of authentication information and method and system for proxy authentication
CN101038597A (en) Data collector and system for sharing data collected
CN1614927A (en) Method for realizing tree-shaped structure in B/S structure
CN1722728A (en) Information registering method, information managing apparatus and advertisement displaying system
CN1917484A (en) Method of fast access of instant communicating system and system thereof
CN1874241A (en) Implementation method of electronic bulletin based on browsing event on web
CN1503181A (en) Method for poblishing address and system for realizing same
JP4642903B2 (en) Message conversion system and method with enhanced context recognition

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant