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 Struts validation validwhen tag 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 "Struts validation validwhen tag" Watch "Struts validation validwhen tag" New topic
Author

Struts validation validwhen tag

subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
Hi
I am tryign to use the validwhen tag for struts validation
I have a certain user acct something like ABC%(ie ABC2,ABC45 etc) and for that user acct the user must fill a particular form field for others there is no need

so in that form field i use a valid when tag
but I want to do a LIKE comparison ie I want to see if the user Acct starts with ABC
I know I can use < >= but is there something that enables string comparisons in the validwhen tag?
thanks
subu
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts validation validwhen tag
 
Similar Threads
Struts e-mail validator doesn't handle null?
Help with validwhen rule
use of requiredIf in validation.xml
custom validator and custom tags
struts - using validwhen for password validation