File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Restricting  to fieldwise validation in StrutsValidation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Restricting  to fieldwise validation in StrutsValidation" Watch "Restricting  to fieldwise validation in StrutsValidation" New topic
Author

Restricting to fieldwise validation in StrutsValidation

Sowrabha
Greenhorn

Joined: Feb 07, 2005
Posts: 17
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Restricting to fieldwise validation in StrutsValidation
 
Similar Threads
BackingBean problem
Validations for a simple login page
Form validation in struts
Focus
Handling error messages (Struts2 jquery )