This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 482
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Regarding Form Validation using Validator plugin
 
Similar Threads
validation.xml check date conflict (and when to use DynaActionForm)
Strage: DynaValidatorActionForm vs DynaValidatorForm
custom validation w/ Struts Validator
Struts 1.2 - Client and Server-side validations
Error message