This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
now what i want to do is make sure that if they type something into fname, lname also has a value in it. This is where my problem starts. I am using custom validator methods so in my validation.xml i have something like this
basically what i want to do is when i send the fname property to my validateNames method, i want to know which index i am current validating (fname or fname .....). that way i can check teh correpsonding index in the lname field to see if its NULL or not and validate accordingly. maybe using the <var> tag is not what i want to do and there is a way inside the validating method to pull that index out im not sure.
can someone please help me with this??