aspose file tools*
The moose likes Spring and the fly likes Simple rejectIfEmptyOrWhiteSpace  validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Simple rejectIfEmptyOrWhiteSpace  validation " Watch "Simple rejectIfEmptyOrWhiteSpace  validation " New topic
Author

Simple rejectIfEmptyOrWhiteSpace validation

Aleksandar Mitrev
Greenhorn

Joined: Mar 21, 2008
Posts: 25
I'm trying to check if the form fields are empty inside spring flow declaration. I don't want to create Validator because I wan a simple check for form field required like
ValidationUtils.rejectIfEmptyOrWhiteSpace(errors, "name", "name.required" )
so is it possible to do this outside of validator class inside flow declaration - for example something like this:
If there is not such syntax in Spring, OGNL and EL, How can I preform this check inside validator for example
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Simple rejectIfEmptyOrWhiteSpace validation