This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes field validator Vs Non-field validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "field validator Vs Non-field validator" Watch "field validator Vs Non-field validator" New topic

field validator Vs Non-field validator

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
Field validators are much convinient and allow us to group multiple validators to be applied to same field in one <field> element. Then what are the situations where non-field validators come in handy over field validators?

I am slow but sure
Ankit Garg

Joined: Aug 03, 2008
Posts: 9291

Non-field validators can be used for validations across fields, like if you want to check if the password and confirm password are not the same...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: field validator Vs Non-field validator
Similar Threads
short-circuit attribute not working in validation file
short-circuiting validations
Conditional validation in Struts2
form validation in struts2
struts2 xml validator error message placement?