aspose file tools*
The moose likes Struts and the fly likes Qus on validator framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Qus on validator framework" Watch "Qus on validator framework" New topic
Author

Qus on validator framework

Preeti Jain
Ranch Hand

Joined: Jun 08, 2005
Posts: 57
Hi,
I am using Validator framework for the first time. I have some usual validations like required etc for which I have used client as well as server side validations. I have used server side validations just to ensure that when Javascript is disabled, the input should still get validated. However, isnt this an overhead? I mean when javascript is enabled, it will not let bad input reach the server but server-side validation will happen nevertheless. Can I in some way activate server-side validations only in case of javascript being disabled?

Also, there are some client side validations for which I need additional custom functions. Can I include my javascript file in some way so that it can be available to the javascript functions in the validator-rules.xml file?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Qus on validator framework
 
Similar Threads
Validwhen validator java script
why different kind of validations in Struts.explain me
Validwhen validator client side javascript
javascript mandatory for client side validations
Struts Validator - Client and Server side validations together