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

Method and system for verifying field validity Download PDF

Info

Publication number
CN101075989B
CN101075989B CN2007100900594A CN200710090059A CN101075989B CN 101075989 B CN101075989 B CN 101075989B CN 2007100900594 A CN2007100900594 A CN 2007100900594A CN 200710090059 A CN200710090059 A CN 200710090059A CN 101075989 B CN101075989 B CN 101075989B
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.)
Active
Application number
CN2007100900594A
Other languages
Chinese (zh)
Other versions
CN101075989A (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

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 renewals synchronously, and the user enters the mouth through Software Operation and carries out the typing of various information, 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 in software, have 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 complicacies 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 let 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 number, phone number or the Email of user input, perhaps the coding of the length of some attribute field and acceptance regulation all is that the mode of in program, carrying out hard coded is judged, promptly in program, by the validity judge module composition rule, length that certain API (API) function judges certain field or the character code that belongs to is provided; 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 possibly 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 concrete realization 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, said 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 said XML field configuration file table obtaining the XML configuration information, and said input field is carried out validation verification according to said XML configuration information;
Said XML field configuration file table comprises multiple XML configuration information and is used to distinguish the root element of XML configuration information;
Said 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.
This method further comprises:
Upgrade the XML configuration information in the said XML field configuration file table, resolve said XML field configuration file table obtaining the XML configuration information after the renewal, and said input field is carried out validation verification according to the XML configuration information after the said renewal.
Said 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; Confirm 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 said XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Client is used to receive said XML field configuration file table and input field, resolves said XML field configuration file table obtaining the XML configuration information, and according to said XML configuration information said input field is carried out validation verification;
Said XML field configuration file table comprises multiple XML configuration information and is used to distinguish the root element of XML configuration information;
Said 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.
Said 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 said 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.
Said client comprises information receiving unit, resolution unit and validation verification unit, wherein
Information receiving unit is used to receive said XML field configuration file table and input field;
Resolution unit is used to resolve said XML field configuration file table to obtain the XML configuration information;
The validation verification unit is used for according to said XML configuration information said input field being carried out validation verification.
Said server be further used for upgrading the XML configuration information in the said XML field configuration file table, and the XML field configuration file table after will upgrading sends to client;
Said client; Be further used for receiving said renewal back XML field configuration file table; Resolve XML field configuration file table after the said 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 said 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 FTP (FTP) to set up connects.
Said 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; Confirm 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.
Said server is further used for client is carried out authentication, and only to send XML field configuration file table through the client of authentication.
From technique scheme, can find out; 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 instance in the XML field configuration file table; The validity processing that certain is specific is applied to validity and judges engine, allows to revise and perhaps replaces the validity judgement, 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 through registration or releasing from this XML field configuration file table 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 sketch map 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 object of the invention, technical scheme and advantage express clearlyer, the present invention is remake further detailed explanation below in conjunction with accompanying drawing and specific embodiment.
Fig. 1 is the exemplary flow sketch map 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 said 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 representes the name of group (Group); UserName representes address name, and allowing length is 25, and input type is any; Gender representes sex, and allowing length is 1, and input type can only be a numeral; Email representes 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 representes 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 crowd's module (Group) in the exemplary 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, crowd'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.Complete XML field configuration file table to should application program is following:
<ValidateInfo>
< Group name=" group members information " >
Member Name length=" 25 " InputType=" All "/
Member's sex length=" 1 " InputType=" /> NumOnly
Addresses of items of mail length=" and 50 " InputType=" AlphaAndNumb "
Include=“”/>
</Group>
< Contact name=" essential information " >
Pet name length=" 25 " InputType=" All "/
Telephone number length=" 15 " InputType=" NumOnly "/
Phone number length=" and 16 " InputType=" NumOnly "/
Remark information length=" and 20 " InputType=" AlphaAndNumb "/
</Contact>
</ValidateInfo>
Similarly, Contact name representes 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 said XML field configuration file table obtaining the XML configuration information, and said input field is carried out validation verification according to said 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; Confirm 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 title, 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 module; 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 tabulation that key is corresponding by module name, according to current field title, traversal is obtained data such as its corresponding field length, field type; Whether the field according to the input of the Object object judges that obtains meets the XML configuration information then, and 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, to the Map data structure of Key-Object tabulation, if for the crowd'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 title 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 representes 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; Be the field validity Rule of judgment of relevant crowd's module in the example that provides for example, 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 corresponding validity of module name query that this data message at first belongs to according to user interface judges whether administration module has the validity judgement field information table to this module; 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.
It is thus clear that; The present invention proposes a kind of technological implementation method based on dynamic extendible validation verification; The defective that all adopts the mode of hard coded to handle to 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 judges the given application instance in the list file according to this validity, and 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, thus can need carry out the application that validity is judged through registration or releasing from this validity judgement list file simply, 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 said XML field configuration file table; Resolve said XML field configuration file table obtaining the XML configuration information after the renewal, and said input field is carried out validation verification according to the XML configuration information after the said 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 let crowd'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 corresponding data XML table of the corresponding group business 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 the data protocol of renewal sequence number that validity judges the XML tables of data to server, and the effective data packets that server sends according to client confirms it is to obtain the agreement of upgrading sequence number, then returns the new renewal serial number of correspondence.
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, for example TCP or http protocol are set up and server between data transmission channel, after server is confirmed to be effective client, utilize the corresponding new XML tables of data of setting up of data channel loopback to give client software.
Client software is after dedicated tunnel is accomplished the 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, and 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 local validity judgment processing logic of client software, to the interference that the user also has no, has improved the ease for use and the extensibility of software greatly.
To 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 said XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Client 202 is used to receive said XML field configuration file table and input field, resolves said XML field configuration file table obtaining the XML configuration information, and according to said XML configuration information said input field is carried out validation verification.
Preferably,
Said server 201 be further used for upgrading the XML configuration information in the said XML field configuration file table, and the XML field configuration file table after will upgrading sends to client;
Said client 202; Be further used for receiving said renewal back XML field configuration file table; Resolve XML field configuration file table after the said 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 said 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 FTP (FTP) to set up connects.
Though more than specified some concrete network connection protocols; But those skilled in the art can recognize; Enumerating here is merely 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, said 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
Said 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.
Said 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; Confirm 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 to send XML field configuration file table through the client of authentication.
Server 201 and/or client 202 can comprise that corresponding logic function unit makes up the realization above-mentioned functions.Such as, explain in more 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 units 3011 and information transmission unit 3012; File table dispensing unit 3011 is used to dispose XML field configuration file table, and said 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 said XML field configuration file table to obtain the XML configuration information;
Validation verification unit 3023 is used for according to said XML configuration information said 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 judges the given application instance in the list file according to this validity; 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, and can simply need carry out the application that validity is judged through registration or releasing from this validity judgement list file, 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 merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for a verifying field validity is characterized in that, but pre-configured extension flag Language XML field configuration file table, said 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 said XML field configuration file table obtaining the XML configuration information, and said input field is carried out validation verification according to said XML configuration information, and return information prompting user input whether successfully;
Said XML field configuration file table comprises multiple XML configuration information and is used to distinguish the root element of XML configuration information;
Said analyzing XML field configuration file table to be obtaining the XML configuration information, and according to the XML configuration information said 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.
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 said XML field configuration file table, resolve said XML field configuration file table obtaining the XML configuration information after the renewal, and said input field is carried out validation verification according to the XML configuration information after the said renewal.
3. the method for a verifying field validity is characterized in that, but pre-configured extension flag Language XML field configuration file table, said 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 said XML field configuration file table obtaining the XML configuration information, and said input field is carried out validation verification according to said XML configuration information, and return information prompting user input whether successfully;
Said 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; Confirm 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.
4. the system of a 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 said XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Client; Be used to receive said XML field configuration file table and input field; Resolve said XML field configuration file table obtaining the XML configuration information, and said input field is carried out validation verification according to said XML configuration information, and return information prompting user input whether successfully;
Said XML field configuration file table comprises multiple XML configuration information and is used to distinguish the root element of XML configuration information;
Said analyzing XML field configuration file table is to obtain the XML configuration information; And according to the XML configuration information said input field is carried out validation verification and comprise: said client traversal XML field configuration file table; Obtain multiple XML configuration information corresponding to root element; And, a plurality of input fields corresponding to a plurality of input modules are carried out validation verification respectively according to the multiple XML configuration information that is obtained.
5. the system of verifying field validity according to claim 4 is characterized in that, said 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 said 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.
6. the system of verifying field validity according to claim 4 is characterized in that, said client comprises information receiving unit, resolution unit and validation verification unit, wherein
Information receiving unit is used to receive said XML field configuration file table and input field;
Resolution unit is used to resolve said XML field configuration file table to obtain the XML configuration information;
The validation verification unit is used for according to said XML configuration information said input field being carried out validation verification.
7. the system of verifying field validity according to claim 4 is characterized in that,
Said server be further used for upgrading the XML configuration information in the said XML field configuration file table, and the XML field configuration file table after will upgrading sends to client;
Said client; Be further used for receiving said renewal back XML field configuration file table; Resolve XML field configuration file table after the said 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.
8. according to the system of claim 4 or 5 described verifying field validities, it is characterized in that being connected between the said server and client side:
The network that utilizes transmission control protocol TCP to set up connects; Perhaps
The network that utilizes HTTP HTTP to set up connects; Perhaps
The network that utilizes FTP FTP to set up connects.
9. the system of a 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 said XML field configuration file table includes the XML configuration information that is used to verify input field validity;
Client; Be used to receive said XML field configuration file table and input field; Resolve said XML field configuration file table obtaining the XML configuration information, and said input field is carried out validation verification according to said XML configuration information, and return information prompting user input whether successfully; Said analyzing XML field configuration file table to be obtaining the XML configuration information, and according to the XML configuration information said input field carried out validation verification and comprise:
Said client 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; Confirm 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.
10. the system of verifying field validity according to claim 9 is characterized in that,
Said server is further used for client is carried out authentication, and only to send XML field configuration file table through the client of 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 CN101075989A (en) 2007-11-21
CN101075989B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567369A (en) * 2010-12-27 2012-07-11 沈阳中科博微自动化技术有限公司 Configuration method of I/O (Input/Output) configuration tool parameter for IC (Integrated Circuit) equipment
CN102123099B (en) * 2011-03-18 2013-07-24 中国工商银行股份有限公司 Message processing system and method
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
CN101075989A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
CN101075989B (en) Method and system for verifying field validity
CN100478956C (en) Method and corresponding system for creating and obtaining report forms
JP5302374B2 (en) Actionable email document
US20050015406A1 (en) Method and system for customizable client aware content selection and rendering in a portal server
US20050085244A1 (en) Implementing sms-based value added service
US20050198180A1 (en) Method and system for providing automatic email address book
CN109617647B (en) Message conversion method and device, computer equipment and computer readable storage medium
WO2012055175A1 (en) Method, apparatus and system for processing the configuration files
US20040268256A1 (en) Program, character inputting and editing method, apparatus and storage medium
US7590748B2 (en) Localization of resources used by applications in hand-held electronic devices and methods thereof
CN101330657A (en) Address list system and implementing method thereof
CN112016290A (en) Automatic document typesetting method, device, equipment and storage medium
CN110474836A (en) A kind of email template generation method, calculates equipment and medium at device
US20090083284A1 (en) Delivery server for delivering documents to be browsed to mobile terminal, mobile terminal, and delivery system for delivering documents to be browsed to mobile terminal
CN113626223A (en) Interface calling method and device
CN100508516C (en) Service processing device and service processing method
CN112765270B (en) Block chain data processing method and device, computer equipment and medium
KR100680034B1 (en) Context cognizance enhancing message transform system, and method for the same
CN111757282B (en) Short message sending method and device
CN111464425B (en) Mail generation method, device, equipment and storage medium
CN111367987A (en) Data import method, system and device suitable for multiple database types
CN102591851A (en) Method and device for editing target texts based on keyboard keys
CN109951318A (en) The function configuration method and device of application
CN114386853A (en) Data auditing processing method, device and equipment based on universal auditing model
CN101146123B (en) A mobile phone reading system and its method

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