permaculture playing cards
The moose likes Struts and the fly likes What is the difference between required and requiredstring validator classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "What is the difference between required and requiredstring validator classes" Watch "What is the difference between required and requiredstring validator classes" New topic
Author

What is the difference between required and requiredstring validator classes

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
What is the difference between required and requiredstring validator classes while using them for validating form fields?


I am slow but sure
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9405
    
  20

required validator only checks that the request parameter exists i.e. its not null. It will allow empty value but the required string validator checks that the parameter is not only present, but its value should not be blank...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: What is the difference between required and requiredstring validator classes
 
It's not a secret anymore!