• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Validator at client side

 
Maneesh Chauahn
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic