This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Regarding Form Validation using Validator plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Regarding Form Validation using Validator plugin" Watch "Regarding Form Validation using Validator plugin" New topic
Author

Regarding Form Validation using Validator plugin

Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
Iam using Validator plugin for validating the form details.
Here what i have observed is, it will validate all the fields and displays the result.

1.what is need is, if the first field validation fails, then further validation has to be skipped and control has to be moved to respective page

Please let me know how this can be done...

2.Here the validation is done on server side, Can any one tell me how to perform validations on the client side?

thanks in advance.


Abhishek
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

i think you must to use any programming language, which "independen" and can run in client side such as Javascript...

if you just need a simple validation..
i think Javascript is enough for simple client side validation..

CMIIW.

Regards,
W
(Sorry my English isn't too good)

Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
thanks for the reply.....
what about my first question?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The validator docs discuss both of these issues, I think.
 
Don't get me started about those stupid light bulbs.
 
subject: Regarding Form Validation using Validator plugin
 
Similar Threads
Struts 1.2 - Client and Server-side validations
Error message
Strage: DynaValidatorActionForm vs DynaValidatorForm
validation.xml check date conflict (and when to use DynaActionForm)
custom validation w/ Struts Validator