Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Restricting to fieldwise validation in StrutsValidation

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.?

And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!