Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Restricting to fieldwise validation in StrutsValidation

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


I wanted to know how to perform a fieldwise validation using validator framework.


Suppose i have a login form with userid and password and a Login Button
I have set 3 properties REQUIRED,LENGTH and MASK for each of these fields.

Now if i enter only userID that too invalid.(with just a letter) and hit the Login Button,
It will not validate the form for LENGTH and MASK for userID.It will only validate REQUIRED property for userID. Since it is satisfied it starts validating Password. and then once u enter a password then it starts validating for LENGTH of user ID,follwed by LENGTH of passwd .
Finally it validates MASK for userID and then MASK for passwd.

I wanted to know how we can restrict the validation of usedID first.and only if it is complete proceed for validating Passwd.?

Thanks,
Sowrabha
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic