File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes ValidWhen syntax for struts validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ValidWhen syntax for struts validation" Watch "ValidWhen syntax for struts validation" New topic

ValidWhen syntax for struts validation

Nina Anderson
Ranch Hand

Joined: Jul 18, 2006
Posts: 148
I'm trying to implement struts validation with "ValidWhen". But the validation is not working as what I want it to do.

These are the cases where I want the user's input to be valid:

Here's my validation.xml:

Currently, the page accept any input the user selects for "selectedAdvertVenueCode" or "otherDescription". What I'm I doing wrong?!!!
I agree. Here's the link:
subject: ValidWhen syntax for struts validation
It's not a secret anymore!