File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts Validator at  client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Validator at  client side " Watch "Struts Validator at  client side " New topic

Struts Validator at client side

Maneesh Chauahn
Ranch Hand

Joined: Mar 06, 2006
Posts: 48
Hi All,
I have a question on the validator plug in which we defined in the struts-config.xml .
As we can use this validator frame work either on the client side or server side.

With the help of validation frame work, there is no need to right the java script. Validation framework automatically creates the java script.

Now my question is that validation plug in is defined in the struts -config.xml which is under the control of actionservlet (server side).

how can it is possible that validation frame work works on the client side

Thanks in advance for prompt answer
Maneesh Chauhan
Joan Horta Tosas
Ranch Hand

Joined: Feb 01, 2007
Posts: 59
As Struts page says
If the Javascript Tag is used, the client side Javascript generation looks for a value in the validator's javascript attribute and generates an object that the supplied method can use to validate the form. For a more detailed explanation of how the Javascript Validator Tag works, see the html taglib API reference.
I agree. Here's the link:
subject: Struts Validator at client side
It's not a secret anymore!