File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Simple rejectIfEmptyOrWhiteSpace  validation " Watch "Simple rejectIfEmptyOrWhiteSpace  validation " New topic

Simple rejectIfEmptyOrWhiteSpace validation

Aleksandar Mitrev

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
I agree. Here's the link:
subject: Simple rejectIfEmptyOrWhiteSpace validation
It's not a secret anymore!