tags:

views:

13

answers:

1

hi all.. i have a address.java file with a textField as PostCode. in that only number should accepted. if i try to enter characters in that it sould popup a message. these validation must be done in address.xml file only i tried by giving the validation as

           <testcase>  
                <messageType>error</messageType>
                <validationType>isDigit</validationType>      
                <validationRule>5</validationRule>     
            </testcase>

but its not working. plz anybody can help me in solving this

+1  A: 

What are you using to enforce validations? I.e. what reads the .xml file and validates?

Graphain
.xml file reads the data in the address.java file and validate it before sending to data base
charan
Yes, but what are you doing to validate. As far as I know java doesn't come with a validations library. I get you have validations but your xml file is just data - it has no meaning - java doesn't magically know what "validationType" and "validationRule" are so how are you evaluating these?
Graphain